Bug 1691348 - [marionette] Don't raise NoSuchWindow error when frame's content hasn't been finished loading after "WebDriver:SwitchToFrame". r=marionette-reviewers,jgraham

Differential Revision: https://phabricator.services.mozilla.com/D104670
This commit is contained in:
Henrik Skupin 2021-02-11 16:10:58 +00:00
Родитель 229df1b9b6
Коммит 24a0627775
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -520,6 +520,11 @@ class MarionetteCommandsChild extends JSWindowActorChild {
browsingContext = context;
}
// For in-process iframes the window global is lazy-loaded for optimization
// reasons. As such force the currentWindowGlobal to be created so we always
// have a window (bug 1691348).
browsingContext.window;
return { browsingContextId: browsingContext.id };
}