Bug 43614 - XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error
Summary: XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error
Status: RESOLVED DUPLICATE of bug 55764
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 01:58 PDT by Jaka Jančar
Modified: 2011-03-10 06:55 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaka Jančar 2010-08-06 01:58:55 PDT
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
Comment 1 Alexey Proskuryakov 2010-08-06 04:30:27 PDT
Yes, we probably shouldn't be logging the cancelled error.
Comment 2 Andrey Kosyakov 2011-03-10 06:55:47 PST

*** This bug has been marked as a duplicate of bug 55764 ***