зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1770477 - [bidi] Return the innerWindowId as realm id for script.evaluate r=webdriver-reviewers,jgraham,whimboo
Depends on D149413 Differential Revision: https://phabricator.services.mozilla.com/D150245
This commit is contained in:
Родитель
62cafcc5f3
Коммит
25cf447901
|
@ -249,10 +249,16 @@ class ScriptModule extends Module {
|
|||
);
|
||||
}
|
||||
|
||||
if (!context.currentWindowGlobal) {
|
||||
throw new lazy.error.NoSuchFrameError(
|
||||
`No window found for BrowsingContext with id ${contextId}`
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Return an actual realm once we have proper realm support.
|
||||
// See Bug 1766240.
|
||||
return {
|
||||
realm: null,
|
||||
realm: String(context.currentWindowGlobal.innerWindowId),
|
||||
origin: null,
|
||||
type: RealmType.Window,
|
||||
context,
|
||||
|
|
|
@ -10,6 +10,3 @@
|
|||
|
||||
[test_rejected_promise_with_await_promise_false]
|
||||
expected: FAIL
|
||||
|
||||
[test_rejected_promise_with_await_promise_true]
|
||||
expected: FAIL
|
||||
|
|
Загрузка…
Ссылка в новой задаче