Summary: | XMLHttpRequest on data:// URLs broken | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sridhar Gurivireddy <just1gb> | ||||
Component: | XML | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | ap, tzik, youennf | ||||
Priority: | P2 | ||||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Sridhar Gurivireddy
2007-06-01 11:52:09 PDT
Created attachment 14826 [details]
HTML that does a XHR on data://URL
Add this file to a http:// server and launch in safari.
This does not work in Firefox either, and handling of data:// URLs is not specified in draft XMLHttpRequest spec. Does this work in Internet Explorer? I'm particularly suspicious about the "req.status == 200" check - status is HTTP-specific, and does not apply to other protocols. Also, what are the use cases for this? I mean, instead of loading a data:// URL, one can just use a string literal. It seems that Opera is the only browser that supports XHR on data:// URLs, and this feature is unlikely to get into the spec. See the thread <http://lists.w3.org/Archives/Public/public-webapi/2007Oct/0001.html>. Since no use cases were presented, I don't see any value in implementing this. Could you reconsider this? Now, Firefox and Opera supports XHR for data: URL and some APIs have interface to get content as data: URL. https://bugzilla.mozilla.org/show_bug.cgi?id=702820 *** This bug has been marked as a duplicate of bug 109199 *** |