[Webkit-unassigned] [Bug 13581] New: window.open returns a reference immediately, but properties are cleared later

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 3 18:24:11 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13581

           Summary: window.open returns a reference immediately, but
                    properties are cleared later
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ian.eng.webkit at gmail.com


example, change the target url of window.open to be in the same domain as the
page.

<html>
<script>
foo = window.open("http://..."); 
foo.x = 10;
window.setTimeout('alert(foo.x)', 1000);
</script>
<body>
</body>
</html>

Target window is loaded asynchronized, and returns a window object to 'foo',
but when finished loading, the loader wipes out all properties of the window
object.

Both FF and IE7 keeps foo.x's value 10, but in Safari, it is undefined.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list