[Webkit-unassigned] [Bug 107602] New: HTMLTreeBuilder should not block on <script> tags inside templates

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 22 17:21:30 PST 2013


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

           Summary: HTMLTreeBuilder should not block on <script> tags
                    inside templates
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: adamk at chromium.org
                CC: eric at webkit.org, abarth at webkit.org,
                    rafaelw at chromium.org
            Blocks: 103547


Because the tree builder does block, the parser kicks off a preload scanner. And because the preload scanner starts _inside_ the template, it's not able to make use of its m_templateCount counter to ignore resources it finds inside the scanner. This is what was causing the failure noted in bug 106810.

Since the tree builder knows it's in a template, it could simply avoid queueing an scripts inside the template for processing. But that might be somewhat ugly, since it requires the tree builder to "know" that scripts are inert in templates (currently that knowledge is handled at the ScriptElement level instead, by examining the <script>'s ownerDocument).

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