Bug 1015333 - Stop using nsIScriptContext in ImageEncoder's EncodingCompleteEvent; r=bholley