[Webkit-unassigned] [Bug 65407] New: Webkit allows modification of current document after parsing is done, should call document.open() on new document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 29 22:03:04 PDT 2011


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

           Summary: Webkit allows modification of current document after
                    parsing is done, should call document.open() on new
                    document
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tobbi.bugs at googlemail.com


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

As per https://bugzilla.mozilla.org/show_bug.cgi?id=675399#c1 and http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#dom-document-write, calling of document.write after parsing is done should trigger a new document object to be created (please refer to that bug for proper explanation:
---
You're calling document.write() after parsing is done.  Per http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#dom-document-write step 3, this triggers a call to open().

Then http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#dom-document-open step 12 replaces the window associated with the document with a new window.  The list of timeouts is attached to the old window, so goes away.

WebKit just gets this wrong.  Please report the problem to them....
---

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