[webkit-reviews] review canceled: [Bug 72538] WebWorker threads can outlive the QApplication instance : [Attachment 115691] wait for WorkerThread to terminate in stop()

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


Andrew Wason <rectalogic at rectalogic.com> has canceled Andrew Wason
<rectalogic at rectalogic.com>'s request for review:
Bug 72538: WebWorker threads can outlive the QApplication instance
https://bugs.webkit.org/show_bug.cgi?id=72538

Attachment 115691: wait for WorkerThread to terminate in stop()
https://bugs.webkit.org/attachment.cgi?id=115691&action=review

------- Additional Comments from Andrew Wason <rectalogic at rectalogic.com>
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)


More information about the webkit-reviews mailing list