[Webkit-unassigned] [Bug 11399] New: window.eval runs in the global scope of the calling window

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 24 06:47:13 PDT 2006


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

           Summary: window.eval runs in the global scope of the calling
                    window
           Product: WebKit
           Version: 419.x
          Platform: Macintosh PowerPC
               URL: http://www.fredck.com/bugs/safari/window_eval/window_eva
                    l.html
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: fredck at fredck.com


If you call the following code in a window loaded inside an IFRAME:

    window.parent.eval( 'var MyObject = new Object();' )

... "MyObject" is created at the "window" global scope, not at "window.parent".

The URL points to a simple test case. It works well with IE, Firefox and Opera.

Any temporary workaround to evaluate a script in a specific window is welcome.


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