[Webkit-unassigned] [Bug 71099] New: Reset line numbers for scripts generated with document.write.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 28 02:12:47 PDT 2011


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

           Summary: Reset line numbers for scripts generated with
                    document.write.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pfeldman at chromium.org
                CC: abarth at webkit.org, yurys at chromium.org,
                    podivilov at chromium.org


We need to distinguish scripts generated with document.write from the ones generated by the parser of the original resource. Otherwise we bind them to the resource and hence lose them from the debugging UI.

Consider the following example:

1: <html>
2: <script>function aa() {}</script>
3: <script>function bb() {}</script>
4: <script>document.write("<scrip" + "t>\n\n\n\n\nfunction cc() {}</sc" + "ript>");</script>
5: <script>function dd() {}</script>
6: </html>

As a result, following scripts are reported to be parsed (all sharing the main resource url):

line 2-2
line 3-3
line 4-10
line 5-5

As a result of this patch, scripts will be annotated:

line 2-2
line 3-3
line 0-6
line 5-5

We will then render scripts starting at 0 as standalone entities.

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