[Webkit-unassigned] [Bug 41060] New: New tokenizer: document.write should not affect line numbers reported to the VM.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 23 05:55:44 PDT 2010


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

           Summary: New tokenizer: document.write should not affect line
                    numbers reported to the VM.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: ASSIGNED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pfeldman at chromium.org
                CC: eric at webkit.org, timothy at apple.com, abarth at webkit.org,
                    podivilov at chromium.org


Created an attachment (id=59506)
 --> (https://bugs.webkit.org/attachment.cgi?id=59506)
[TEST] Layout test for line number.

Following snippet results in console.log reporting line 108 instead of 8:

<html>
<head>
<script>
for (var i = 0; i < 100; ++i)
    document.write("<p></p>\n");
</script>
<script>
console.log("Line number should be == 8.");
</script>

</head>

<body>
<p>This test checks that document.write does not affect line numbering and script tags are reported to have correct line numbers</p>
</body>
</html>

Attaching snippet as a draft for the layout test.

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