[Webkit-unassigned] [Bug 72538] WebWorker threads can outlive the QApplication instance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 23 18:12:43 PST 2011


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


Andrew Wason <rectalogic at rectalogic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #115691|0                           |1
        is obsolete|                            |
 Attachment #115691|review?, commit-queue?      |
               Flag|                            |
 Attachment #116462|                            |review?, commit-queue?
               Flag|                            |




--- Comment #9 from Andrew Wason <rectalogic at rectalogic.com>  2011-11-23 18:12:43 PST ---
Created an attachment (id=116462)
 --> (https://bugs.webkit.org/attachment.cgi?id=116462&action=review)
wait for WorkerThread only for Qt platform

I've tried a number of approaches but can't see how to do this safely with Qt. Part of the problem is knowing when the application is shutting down in order to safely wait for the workers - connecting to QCoreApplication::aboutToQuit is too early because any QWebPages may not be destroyed yet, so they won't have told their workers to quit. Connecting to QCoreApplication::destroyed is too late because some workers may still be starting up and crash because QCoreApplication::instance() is now NULL.

Attached patch makes waiting for WorkerThreads in stop() conditional on PLATFORM(QT)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list