W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

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

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Tue, 18 Aug 2009 21:23:31 -0400
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "Adam Barth" <w3c@adambarth.com>, timeless@gmail.com, "Anne van Kesteren" <annevk@opera.com>, public-webapps@w3.org
Message-ID: <op.uyvx5itz1ejg13@sandra-svwliu01>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT