[Webkit-unassigned] [Bug 97829] REGRESSION (r122168?): External script that includes itself blocks HTML Parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 8 12:37:01 PDT 2012


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





--- Comment #6 from Eric Seidel <eric at webkit.org>  2012-10-08 12:37:36 PST ---
This behavior happens because the PendingScript is now in the ScriptRunner, and we end up looping infinitely here:

void HTMLScriptRunner::executeParsingBlockingScripts()
{
    while (hasParserBlockingScript() && isPendingScriptReady(m_parserBlockingScript))
        executeParsingBlockingScript();
}

But this is only possible if both resources are already in the cache.  Otherwise we'd yield and get a callback from the network when the script was ready.

I think that if a page is doing this infinite loop, we're already going to hang, so hanging here isn't particularly bad.  But it's certainly possible to devise a yield-system for this case.

My first instinct is to just mark this WONTFIX and wait to see if we get any reports of this happening on real websites.

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