[Webkit-unassigned] [Bug 27887] New: Worker URL resolution uses wrong scope

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 31 09:39:16 PDT 2009


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

           Summary: Worker URL resolution uses wrong scope
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: atwilson at google.com


Section 4.8.2 of the Web Workers spec reads:

>>>
When the Worker(scriptURL) constructor is invoked, the user agent must run the
following steps:

Resolve the scriptURL argument relative to the first script's base URL, when
the method is invoked.

If this fails, throw a SYNTAX_ERR exception.

If the origin of the resulting absolute URL is not the same as the origin of
the script that invoked the constructor, then throw a security exception.
<<<

"first script's base URL" == the base URL of the dynamic global object
"origin of the script that invoked the constructor" == "origin of the lexical
global object"

Currently we are using the lexical global object for both. The fail case is
somewhat subtle (you end up having to grab constructors cross-frame, while
changing your origin via document.domain.

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