Bug 43614
Summary: | XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jaka Jančar <jaka> |
Component: | XML | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, caseq, jaka |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.6 |
Jaka Jančar
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Yes, we probably shouldn't be logging the cancelled error.
Andrey Kosyakov
*** This bug has been marked as a duplicate of bug 55764 ***