mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Properly cleanup the tab actors when disconnecting (bug 983121). r=rcampbell
--HG-- extra : rebase_source : b50703c2b2e65a321af9535806903ee6671381c6
This commit is contained in:
parent
0c917e2c74
commit
4134bcb484
@ -624,6 +624,7 @@ TabActor.prototype = {
|
||||
disconnect: function BTA_disconnect() {
|
||||
this._detach();
|
||||
this._extraActors = null;
|
||||
this._chromeEventHandler = null;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -1004,6 +1005,12 @@ Object.defineProperty(BrowserTabActor.prototype, "browser", {
|
||||
configurable: false
|
||||
});
|
||||
|
||||
BrowserTabActor.prototype.disconnect = function() {
|
||||
TabActor.prototype.disconnect.call(this);
|
||||
this._browser = null;
|
||||
this._tabbrowser = null;
|
||||
};
|
||||
|
||||
BrowserTabActor.prototype.exit = function() {
|
||||
TabActor.prototype.exit.call(this);
|
||||
this._browser = null;
|
||||
|
Loading…
Reference in New Issue
Block a user