Summary: | XMLHttpRequest doesn't work in a JavaScript-created window | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jacob Weber <jacob> | ||||||
Component: | XML | Assignee: | Alexey Proskuryakov <ap> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Major | CC: | abarth, bugs-webkit, ian | ||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Jacob Weber
2005-08-08 18:14:33 PDT
The problem here is that the created document has an about:blank URL, so it isn't considered a local file, and isn't allowed to use XMLHttpRequest. Created attachment 5244 [details]
test case
Safari:
winRef.document.URL: file:///Users/ap/Desktop/4343.html
document.URL: about:blank
Firefox 1.5:
winRef.document.URL: about:blank
document.URL: file:///Users/ap/Desktop/4343.html
This was fixed in <http://trac.webkit.org/projects/webkit/changeset/34506> and related check-ins. Looks like this exact scenario doesn't have a test yet, so I'll make a patch to land a test for XHR from a pop-up window. Created attachment 28218 [details]
test case for landing
Comment on attachment 28218 [details]
test case for landing
r=me
Committed revision 41382. |