GNOME Bugzilla – Bug 708325
Loads java the first time I click a note
Last modified: 2017-05-24 02:59:30 UTC
The first time I click a note after the app starts it takes up to a second or two and prints the following on the console: No bp log location saved, using default. [000:000] Browser XEmbed support present: 1 [000:000] Browser toolkit is Gtk2. [000:050] Using Gtk2 toolkit No bp log location saved, using default. java version "1.7.0_60" OpenJDK Runtime Environment (fedora-2.4.2.0.fc19-x86_64) OpenJDK 64-Bit Server VM (build 24.0-b56, mixed mode)
ouch. This semms related to WekKit but I'll have to dig up
Set the WebKitSettings "enable-plugins" property to FALSE. See: https://git.gnome.org/browse/epiphany/tree/embed/ephy-embed-prefs.c?h=gnome-3-8#n732 This will stop things like Java, Totem, or Flash from ever being loaded into Bijiben.
Created attachment 255259 [details] [review] Disable plugins good, thanks for the info. Attached patch seems to help on first webkit loading, just have to ensure first because my system is not that verbose despite below installed java-1.7.0-openjdk.x86_64 1:1.7.0.60-2.4.2.0.fc19
(needed icedtea-web to reproduce.) Setting "enable-plugins" to FALSE or "enable-java-applet" to FALSE does not prevent the output nor accelerates first note loading (despite what i first wrote above). Or at least not as done in attached patch and with one tested vm ; I could try with something else. http://webkitgtk.org/reference/webkitgtk/stable/WebKitWebSettings.html#WebKitWebSettings--enable-java-applet says "Java content can be still shown in the page through <object> or <embed>", which might explain why it's still loaded. That said, removing icedtea-web did not accelerate neither ; just disabling plugins might be the way to go.
Issue is not present when using WebKit2 port: https://git.gnome.org/browse/bijiben/commit/?id=fb7b8bbac5ef3591d2f940f3034a4390468ad01d