Bug 1924859 - [bidi] Only allow "browsingContext.traverseHistory" command for top-level browsing contexts. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D227215
This commit is contained in:
@@ -1495,6 +1495,12 @@ class BrowsingContextModule extends RootBiDiModule {
|
|||||||
|
|
||||||
const context = this.#getBrowsingContext(contextId);
|
const context = this.#getBrowsingContext(contextId);
|
||||||
|
|
||||||
|
if (context.parent) {
|
||||||
|
throw new lazy.error.InvalidArgumentError(
|
||||||
|
`Browsing Context with id ${contextId} is not top-level`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
lazy.assert.integer(
|
lazy.assert.integer(
|
||||||
delta,
|
delta,
|
||||||
lazy.pprint`Expected "delta" to be an integer, got ${delta}`
|
lazy.pprint`Expected "delta" to be an integer, got ${delta}`
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
[invalid.py]
|
[invalid.py]
|
||||||
disabled:
|
disabled:
|
||||||
if (os == "android") and not fission: bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1865124
|
if (os == "android") and not fission: bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1865124
|
||||||
[test_iframe]
|
|
||||||
expected: FAIL
|
|
||||||
|
|||||||
Reference in New Issue
Block a user