зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1599037 - Fix RootActor.listRemoteFrames against non-browser windows. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54465 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1958404d26
Коммит
5ce7bb5816
|
@ -602,7 +602,7 @@ RootActor.prototype = {
|
|||
const window = Services.wm.getMostRecentWindow(
|
||||
DebuggerServer.chromeWindowType
|
||||
);
|
||||
if (window.docShell.browsingContext.id === id) {
|
||||
if (window && window.docShell.browsingContext.id === id) {
|
||||
return [
|
||||
...window.document.querySelectorAll(`browser[remote="true"]`),
|
||||
].map(browser => browser.browsingContext);
|
||||
|
|
Загрузка…
Ссылка в новой задаче