[Webkit-unassigned] [Bug 97829] New: External script that includes itself blocks HTML Parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 27 16:22:21 PDT 2012


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

           Summary: External script that includes itself blocks HTML
                    Parser
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: meastham at google.com


Created an attachment (id=166089)
 --> (https://bugs.webkit.org/attachment.cgi?id=166089&action=review)
Test case

Hi there,

The attached pair of scripts cause WebKit's HTML parser to hang. The first defines a function ('callback') which includes the second script using document.write(), and the second script calls this function, thereby inserting itself into the page again. In Chrome 22.0.1229.79 beta opening 'test.html' causes the tab to become unresponsive to clicks, etc. This issue seems to have been introduced in the reworking of how HTMLDocumentParser is paused when waiting for external scripts that was done in r122168 and r122226.

Thanks for taking a look at this.

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