Re: HTTP status code equivalents for file:// operations - compat with xhr

On Tue, 18 Aug 2009 21:13:20 -0400, Jonas Sicking <jonas@sicking.cc> wrote:

> Without commenting on the results in other browsers:
>
> On Tue, Aug 18, 2009 at 5:21 PM, Michael A. Puls  
> II<shadow2531@gmail.com> wrote:
>> Things that could be improved:
>>
>> 1. For Firefox and file_that_does_not_exist.txt, "Access to restricted  
>> URI
>> denied" isn't the best message. Something like "file not found" would  
>> be way
>> better.
>
> Agreed.
>
>> 2. For Firefox, http://www.google.com/webhp should throw an exception
>> instead of just making responseText "".
>
> Note that we let you load data from this url according to the CORS
> spec [1]. So we can't just throw. But you should get an error event
> eventually, do you not?

With XHR2 and an error listener, 'error' does fire, but the event object  
is just a progress event with no data about the error.

-- 
Michael

Received on Wednesday, 19 August 2009 01:24:14 UTC