GNOME Bugzilla – Bug 740242
Port HTML5 Viewer to WebKit2
Last modified: 2014-11-20 17:41:53 UTC
WebKit 1 has been officially deprecated. We should implement the viewer in the WebKit2. This should be easy... I'm going to attach a patch that should implement it.
Created attachment 290844 [details] [review] Patch that fixes the problem.
Review of attachment 290844 [details] [review]: Have you tried this patch? I don't think it will work, as in WebKit2 you should not pack the webview into a GtkScrolledWindow anymore. ::: src/js/viewers/html.js @@ +30,3 @@ const Sushi = imports.gi.Sushi; +const Lang = imports.lang; Doesn't look like you use this.
Created attachment 290894 [details] [review] Remove Lang declaration
(In reply to comment #2) > Review of attachment 290844 [details] [review]: > > Have you tried this patch? I don't think it will work, as in WebKit2 you should > not pack the webview into a GtkScrolledWindow anymore. Ups, I have just read this comment and yes, I have tried it or at least I think I did it... And it worked. > > ::: src/js/viewers/html.js > @@ +30,3 @@ > const Sushi = imports.gi.Sushi; > > +const Lang = imports.lang; > > Doesn't look like you use this.
Created attachment 290899 [details] [review] Patch Remove scrolled window.
Thanks, I pushed this with a slight change to the WebkitWebView constructor syntax.