зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1577881 - Watch out for dead windows in getAllWindowDebuggees, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D45114 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
092a5bfa5d
Коммит
5ac4e26c13
|
@ -5,6 +5,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const xpcInspector = require("xpcInspector");
|
const xpcInspector = require("xpcInspector");
|
||||||
|
const { Cu } = require("chrome");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages pushing event loops and automatically pops and exits them in the
|
* Manages pushing event loops and automatically pops and exits them in the
|
||||||
|
@ -131,7 +132,7 @@ EventLoop.prototype = {
|
||||||
})
|
})
|
||||||
// Ignore iframes as they will be paused automatically when pausing their
|
// Ignore iframes as they will be paused automatically when pausing their
|
||||||
// owner top level document
|
// owner top level document
|
||||||
.filter(window => window.top === window)
|
.filter(window => !Cu.isDeadWrapper(window) && window.top === window)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче