[Webkit-unassigned] [Bug 33842] [Qt] media tests crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 21 04:00:38 PST 2010


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





--- Comment #6 from Tor Arne Vestbø <vestbo at webkit.org>  2010-01-21 04:00:36 PST ---
>From http://qt.nokia.com/doc/4.6/qapplication.html#lastWindowClosed:

"This signal is emitted from QApplication::exec() when the last visible primary
window (i.e. window with no parent) with the Qt::WA_QuitOnClose attribute set
is closed."

The video widget has the Qt::WA_DontShowOnScreen flag set. Pre Qt 4.5 this flag
was not considered when deciding "is this window visible" (it has no parent, so
it's a primary window), so the video widget would keep the QtLauncher running
even after the main window was closed. 

The fix was to also set Qt::WA_QuitOnClose, so that closing the main
application would be considered the "last visible primary window with the
Qt::WA_QuitOnClose attribute set".

What's happening here seems to be that we receive the lastWindowClosed signal
since we're running the DRT headless, and the video widget is not considered
visible due to the flag, so we end up quitting the DRT since the signal is
implicitly connected to QApplication::quit().

I think the solution might be to set quitOnLastWindowClosed to false, could you
try that without removing the ifdef and see if it works?  

http://qt.nokia.com/doc/4.6/qapplication.html#quitOnLastWindowClosed-prop

-- 
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