[Webkit-unassigned] [Bug 109422] [Qt] Add Page Visibility API support

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 19 06:15:34 PST 2013


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





--- Comment #22 from Benjamin Dupont <bdupont at nds.com>  2013-02-19 06:17:56 PST ---
(In reply to comment #21)
> (From update of attachment 189060 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=189060&action=review
> 
> > Source/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp:153
> > +    view.show();
> > +    QTest::qWait(5);
> 
> I think this is likely to fail with different windowing systems. I think it would be better to use functionality like qWaitForWindowExposed. Now I suppose we'd need a similar function in QTestLib for waitForWindowObscured or Hidden?

Yes but qWaitForWindowExposed it's just for the scene is "rendered", correct? What about the QGraphicsWebView show event? Is there any way to know when an event is received? qWait(5) is an empirical way to be sure that QGraphicsWebView has received the show/hide/etc. events, if there is another way to do it I'm very interested about it :)

I'll look for adding waitForWindowObscured function.

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