Bug 11723

Summary: XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: WebCore JavaScriptAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Major    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Patch beidson: review+

Timothy Hatcher
Reported 2006-11-30 09:33:23 PST
All XMLHttpRequest's fail in a pages loaded with WebFrame's loadHTMLString: or loadData:. This failure happens because of the cross-domian check since the frame has a applewebdata://... URL. These URLs should be treated like other file URLs and be allowed to open an XMLHttpRequest to any domain.
Attachments
Patch (1.27 KB, patch)
2006-11-30 09:38 PST, Timothy Hatcher
beidson: review+
Timothy Hatcher
Comment 1 2006-11-30 09:38:20 PST
Created attachment 11682 [details] Patch XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData: http://bugs.webkit.org/show_bug.cgi?id=11723 Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test, tested in Safari's debug Snippet Editor. * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
Brady Eidson
Comment 2 2006-11-30 09:46:33 PST
Comment on attachment 11682 [details] Patch r=me
Timothy Hatcher
Comment 3 2006-11-30 09:49:06 PST
Landed in r17939.
Note You need to log in before you can comment on or make changes to this bug.