[Webkit-unassigned] [Bug 147036] [GTK] WebProcessMain::platformFinalize() is not called when web process finished with exit(0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 29 05:47:15 PDT 2015


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

--- Comment #15 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #10)
> (In reply to comment #9) 
> > gtk_clipboard_store() is expected to be called only when the application is
> > about to quit, and that's what all GTK+ applications do, because GTK calls
> > it after the main loop quits.
> 
> Well... that is certainly the common usage, but I think it's fine to call
> gtk_clipboard_store() whenever we receive data. Otherwise, it's hard to
> think of why else the API exists, if not to be used.

The fact that the API exists doesn't mean it's convenient to be used at any moment. gtk_clipboard_store uses a nested main loop with a timeout of 10 milliseconds. The nested main loop uses the default main context, so any other sources sent to the default main context (like an IPC message handler) would be handled by the nested main loop. That can cause problems, I had a lot of issues with the nested main loop used by gtk_enumerate_printers, because it handled other sources, for example. So, the safest way to use this API, which is how everybody uses it (included firefox for example), is to call it when the application finishes, right after the main loop quits.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150729/9494a945/attachment.html>


More information about the webkit-unassigned mailing list