RESOLVED DUPLICATE of bug 55764 43614
XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error
https://bugs.webkit.org/show_bug.cgi?id=43614
Summary XMLHttpRequest's abort() causes "Failed to load resource: cancelled" error
Jaka Jančar
Reported 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
Attachments
Alexey Proskuryakov
Comment 1 2010-08-06 04:30:27 PDT
Yes, we probably shouldn't be logging the cancelled error.
Andrey Kosyakov
Comment 2 2011-03-10 06:55:47 PST
*** This bug has been marked as a duplicate of bug 55764 ***
Note You need to log in before you can comment on or make changes to this bug.