Bug 21787

Summary: postMessage null origin
Product: WebKit Reporter: Adam Barth <abarth>
Component: DOMAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch sam: review+

Description Adam Barth 2008-10-22 01:07:31 PDT
Ian updated the HTML 5 spec to use "null" instead of the empty string when the browser can't serialize the current origin.  This means we can get rid of SecurityOrigin::toHTTPOrigin() and just use SecurityOrigin::toString() for both postMessage and XMLHttpRequest.
Comment 1 Adam Barth 2008-10-22 01:14:22 PDT
Patch forthcoming.
Comment 2 Adam Barth 2008-10-22 03:04:53 PDT
Created attachment 24554 [details]
Patch

Yay for merging these functions.
Comment 3 Adam Barth 2008-10-23 03:00:25 PDT
Fixed in http://trac.webkit.org/changeset/37805