GNOME Bugzilla – Bug 792541
epub: Fix runtime JavaScript warnings
Last modified: 2018-01-17 08:37:09 UTC
.
Created attachment 366855 [details] [review] epub: Fix runtime JavaScript warnings Gjs-Message: 18:37:27.180: JS WARNING: [resource:///org/gnome/Books/js/epubview.js 89]: Too many arguments to method WebKit2.WebView.run_javascript: expected 3, got 4 Gjs-Message: 18:37:27.181: JS WARNING: [resource:///org/gnome/Books/js/epubview.js 98]: Too many arguments to method Gio.File.read: expected 1, got 2 Gjs-Message: 18:37:27.183: JS WARNING: [resource:///org/gnome/Books/js/epubview.js 109]: Too many arguments to method WebKit2.WebView.run_javascript: expected 3, got 4
This is run_javascript in C: void webkit_web_view_run_javascript (WebKitWebView *web_view, const gchar *script, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); Which one of cancellable, callback and user_data is chopped off when we only have 3 arguments (in addition to the web_view we call this on)?
Review of attachment 366855 [details] [review]: Looks good to me.
(In reply to Bastien Nocera from comment #2) > Which one of cancellable, callback and user_data is chopped off when we only > have 3 arguments (in addition to the web_view we call this on)? Yeah, there's no user_data in the JS bindings, since you can pass parameters in many other ways.
Those were bugs in the patch from bug 768003. *** This bug has been marked as a duplicate of bug 768003 ***