[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
Mon Jul 27 00:37:49 PDT 2015


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

--- Comment #9 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #8)
> (In reply to comment #4)
> > For GTK it is the code Carlos is adding to save the clipboard contents in
> > the clipboard manager, so that you can paste data that you copied from a web
> > process after closing the web process.
> 
> It would be much better to do that earlier, perhaps based on some coalescing
> timer. You don’t want to lose the clipboard if the web process crashes.
> Generally it’s not a good pattern to have any code that runs only on exit.
> One of the main benefits of having a web process is better behavior if a
> crash occurs.

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. We could use a compiler destructor to do all the cleanup though, but I still thing exit(0) is not the best way to finish the web process when we can just quit the main loop, and finish properly from main.

-- 
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/20150727/e4427a94/attachment.html>


More information about the webkit-unassigned mailing list