mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 932867 - FrameWorker should remove the iframe not the browser. r=smaug CLOSED TREE
This commit is contained in:
parent
113bd2581b
commit
3597d9a5d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user