зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1755645 - [devtools] Don't unmanage actor if its "old" parent is the same as the "new" one. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D138881
This commit is contained in:
Родитель
873311238e
Коммит
5ce75066a6
|
@ -94,10 +94,11 @@ class Pool extends EventEmitter {
|
|||
// look at devtools/server/tests/xpcshell/test_addon_reload.js
|
||||
|
||||
const parent = actor.getParent();
|
||||
if (parent) {
|
||||
if (parent && parent !== this) {
|
||||
parent.unmanage(actor);
|
||||
}
|
||||
}
|
||||
|
||||
this._poolMap.set(actor.actorID, actor);
|
||||
actor.parentPool = this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче