- From: <bugzilla@jessica.w3.org>
- Date: Wed, 02 Apr 2014 23:58:33 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25240 --- Comment #1 from Glenn Maynard <glenn@zewt.org> --- For example, var xhr = new XMLHttpRequest(); xhr.open("GET", "/foo"); xhr.onloadend = function() { blob.close(); console.log("XHR finished"); } xhr.onload = function() { finishWorking(); } xhr.onerror = function() { blob.close(); } xhr.send(blob); would result in onloadend throwing and not doing anything after blob.close() on the onerror path, since onerror already closed the blob, even though it's in exactly the state the developer wanted--the blob is closed. (The above isn't the best way to do this, of course--you should just call blob.close() immediately after xhr.send--it's just an example of something harmless being turned into a bug.) -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Wednesday, 2 April 2014 23:58:34 UTC