Re: data and blob URLs in HTTP context

On Wed, Feb 15, 2012 at 4:45 AM, Julian Reschke <julian.reschke@gmx.de>wrote:

> On 2012-02-15 13:13, Julian Reschke wrote:
>
>> On 2012-02-15 11:04, Anne van Kesteren wrote:
>>
>>> On Sun, 05 Feb 2012 17:30:09 +0100, Julian Reschke
>>> <julian.reschke@gmx.de> wrote:
>>>
>>>> On 2012-02-05 15:56, Anne van Kesteren wrote:
>>>>
>>>>> Currently Opera and Firefox seem to support data URLs within the
>>>>> context
>>>>> of XMLHttpRequest. Status is 0, status text is the empty string, there
>>>>> are no response headers, and response-related attributes work as
>>>>> expected.
>>>>> ...
>>>>>
>>>>
>>>> No Content-Type response header?
>>>>
>>>
>>> As far as I can tell, no.
>>>
>>
>> Well, data URIs come with a content type, so when XHR supports them,
>> this header field should be made available...
>>
>> Best regards, Julian
>>
>
> Can't get it to work in Firefox 10 (Error: uncaught exception:
> [Exception... "Access to restricted URI denied"  code: "1012" nsresult:
> "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "http://greenbytes.de/tech/
> **webdav/data.html <http://greenbytes.de/tech/webdav/data.html> Line:
> 8"]).
>
>
XHR to data URIs is first supported in Gecko 12.  See
https://bugzilla.mozilla.org/show_bug.cgi?id=702820.

- Kyle

Received on Wednesday, 15 February 2012 13:43:04 UTC