[Webkit-unassigned] [Bug 211350] [GTK] WEBKIT_LOAD_FINISHED not reached if WebKitWebView has no parent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 14 14:25:44 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=211350

--- Comment #2 from Michael Catanzaro <mcatanzaro at gnome.org> ---
(In reply to Carlos Garcia Campos from comment #1)
> I don't think this is because the webview doesn't have a parent (even though
> I don't know why the example works when adding the view to a container). I
> think it has to do with the soup server and the different run loops, but I'm
> not sure either.

That seemed like a pretty good guess, but it's wrong. I cleaned up the example by removing the SoupServer (relying on connection to gnome.org instead) and removing the GMainLoop (relying on only gtk_main()/gtk_main_quit() instead). Problem still occurs. It's definitely related to whether the web view has a parent. It does not have to be visible, but it does need to be parented so that it's part of the widget hierarchy, or the load never finishes. I have no clue why.

Will attach a revised test that's just a simpler version of what Jan-Michael uploaded.

> When not starting the soup server and loading the document
> with load_html instead of load_uri the load completes. The weird thing is
> that our unit tests also run a soup server and don't add the view to a
> container, so the problem must be something else. 

We can agree that this is weird. :P

> The reason why the load doesn't complete is because the WebProcess exists,
> because the connection to the UI process receives a G_IO_HUP, and WebKit
> exits the process in that case.

Really weird. Why would that happen...?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210114/3a083d77/attachment-0001.htm>


More information about the webkit-unassigned mailing list