[Webkit-unassigned] [Bug 43614] New: XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 6 01:58:55 PDT 2010


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

           Summary: XMLHttpRequest's abort() causes "Failed to load
                    resource: cancelled" error
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jaka at kubje.org


My webapp may abort XMLHttpRequests, if the data is no longer needed, before it has finished loading. This is normal behavior.

Unfortunately, this causes a bunch of "Failed to load resource: cancelled" errors in the console.

Setting an onabort handler doesn't make a difference. Wrapping abort() into try..catch doesn't either.

Example:

var xhr = new XMLHttpRequest;
xhr.open('GET', 'http://www.google.com/');
xhr.send();
xhr.abort(); // www.google.com Failed to load resource: cancelled

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



More information about the webkit-unassigned mailing list