[Webkit-unassigned] [Bug 12307] No way to test error condition of async XMLHttpRequest to file:///

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 23 03:36:12 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=12307


jchaffraix at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jchaffraix at webkit.org




------- Comment #2 from jchaffraix at webkit.org  2008-08-23 03:36 PDT -------
(In reply to comment #1)
> Created an attachment (id=13181)
 --> (https://bugs.webkit.org/attachment.cgi?id=13181&action=view) [edit]
> test case
> 
> In the future, we will probably dispatch an error event for XMLHttpRequest.

We have implemented 'onerror' from XMLHttpRequest level 2, which means that we
now have a way to check for asynchronous request failures.

However during my quick testing, I have tried doing a synchronous one to a
non-existent file (just modify the given test case to do a synchronous request)
and we do not dispatch an error event nor do we throw an exception.

We do not raise an exception because it breaks some website (see
http://trac.webkit.org/changeset/23889) but we could at least dispatch an event
so there is a way to determine that an error occurred.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list