[Webkit-unassigned] [Bug 42170] New: postMessage() second argument should not accept full URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 13 09:19:51 PDT 2010


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

           Summary: postMessage() second argument should not accept full
                    URL
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL:  javascript:var
                    url="http://www.example.com/test",win=window.open(url)
                    ;try{win.postMessage("test",url);alert("FAIL")}catch(e
                    ){alert("PASS")}
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: annevankesteren+webkit at gmail.com


Per HTML5 http://www.whatwg.org/specs/web-apps/current-work/complete/web-messaging.html#dom-window-postmessage postMessage() should throw if targetOrigin contains a path component.

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