[Webkit-unassigned] [Bug 66223] [Qt] inspector/debugger/open-close-open.html fails on Qt port

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 29 04:16:30 PDT 2011


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





--- Comment #6 from Zoltan Herczeg <zherczeg at webkit.org>  2011-08-29 04:16:30 PST ---
> layoutTestController.closeWebInspector -> InspectorController::close -> InspectorFrontend::disconnectFromBackend -> setTimeout(WebInspector.disconnectFromBackend) -> InspectorFrontendHost.disconnectFromBackend -> closing the inspector.
> 
> This does prove that callback is called before inspector is closed, but this is somehow not critical for the rest of the ports sharing the logic. What is the failure symptoms? Could it be difference in the DRT implementation? (DRT should be closing inspector after each test synchronously).

Probably there is a difference. Actually inspector is an entity resource in Qt, only one is allowed to be exists. The opening is synchronous, normally based on the path:

if (isWebInspectorTest(url))
     layoutTestController()->showWebInspector();

Symptoms: it opens a new inspector, and close it right after the next timer event is called. Since there is only one exists at a time there is no inspector after the closing.

Besides, the closing is normally done just before the end of the test by:

function closeInspectorAndNotifyDone()
{
    if (window._watchDogTimer)
        clearTimeout(window._watchDogTimer);

    layoutTestController.closeWebInspector();
    setTimeout(function() {
        layoutTestController.notifyDone();
    }, 0);
}

And that is an asynchronous operation.

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