зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
229df1b9b6
Коммит
24a0627775
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче