moxiecode/plupload — Issue #449: destroy and too late responses
Author: lrozenblyum
Created: 2011-12-26 08:43:46+00:00
State: open

SCENARIO:
Flash uploader in IE (with urlstream_upload = true if it's important)

Add some big file to queue.
Destroy the uploader

EXPECTED:
No problems

ACTUALLY:
JS exceptions in such a piece of code

try { document.getElementById("p16hsog0bqitg184r1k14div1tnd0_flash").SetReturnValue(__flash__toXML(plupload.flash.trigger("p16hsog0bqitg184r1k14div1tnd0","UploadChunkComplete",({chunks:1,id:"file_0",text:"",chunk:0}))) ); } catch (e) { document.getElementById("p16hsog0bqitg184r1k14div1tnd0_flash").SetReturnValue(""); }

The issue is that in catch(e) block we try to access the element that is already removed by destroy function.