When enabling inspector with "developer-extras", the inspector window opened from default webkit menu can't be closed.
Adding a webkit_web_view_get_inspector() call fixes the issue. (Was not present in 2.16)
from gi.repository import WebKit2
from gi.repository import Gtk
view = WebKit2.WebView()
settings = view.get_settings()
window = Gtk.Window()
This one, I can reproduce. 2.18.3 is fine, trunk is not.
We could probably fix it by calling webkitWebInspectorCreate during WebKitWebView construction, instead of doing it lazily, but there's probably a better way, if we could figure out what changed here.
I can't reproduce this.
(In reply to Carlos Garcia Campos from comment #3)
> I can't reproduce this.
Did you try the example in the first comment? MiniBrowser and epiphany both calls webkit_web_view_get_inspector(), which avoids the problem, so you won't be able to reproduce there.
I broke this in r218089
Created attachment 335176 [details]
I can reproduce this with Dinghy (https://github.com/aperezdc/dinghy),
which is is a WPE launcher/browser. It can be built with against
WebKitGTK+ as well passing “-DDY_USE_WEBKITGTK=ON” to CMake. The issue
is present in both ports.
Committed r229396: <https://trac.webkit.org/changeset/229396>