[Webkit-unassigned] [Bug 39996] New: [Qt] Web inspector crashes when pausing JavaScript execution

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 07:35:33 PDT 2010


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

           Summary: [Qt] Web inspector crashes when pausing JavaScript
                    execution
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arvid2.nilsson at gmail.com


When using the QtWebKit 2.0 branch from gitorious.

It crashes after exactly 10 seconds. How could that be? Well, the JavaScript interrupt timeout is 10 seconds. The TimeoutChecker attempts to interrupt the paused JavaScript, which causes an ASSERT to fail when Chrome::shouldInterruptJavaScript() creates the PageGroupLoadDeferrer because the DOM objects are already suspended.

Possible fix:
in QWebSettings, when enabling developer extras, turn off the timeoutchecker:

        value = attributes.value(QWebSettings::DeveloperExtrasEnabled,
                                      global->attributes.value(QWebSettings::DeveloperExtrasEnabled));
        // Fix a bug where QtWebKit crashes if you pause JavaScript execution
        // because it tries to interrupt a script that is already paused.
        JSDOMWindowBase::commonJSGlobalData()->timeoutChecker.setTimeoutInterval(value ? 0 : 10000);
        settings->setDeveloperExtrasEnabled(value);

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