Bug 932867 - FrameWorker should remove the iframe not the browser. r=smaug CLOSED TREE

This commit is contained in:
Kyle Huey 2013-10-30 10:56:55 -07:00
parent 113bd2581b
commit 3597d9a5d9

View File

@ -128,7 +128,8 @@ WorkerHandle.prototype = {
this._worker.ports.clear();
this._worker.ports = null;
this._worker.browserPromise.then(browser => {
browser.parentNode.removeChild(browser);
let iframe = browser.ownerDocument.defaultView.frameElement;
iframe.parentNode.removeChild(iframe);
});
// wipe things out just incase other reference have snuck out somehow...
this._worker.browserPromise = null;