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:
Alexandra Borovova
2024-10-29 16:33:45 +00:00
parent 871cfbb1b4
commit 142386671f
2 changed files with 6 additions and 2 deletions

View File

@@ -1495,6 +1495,12 @@ class BrowsingContextModule extends RootBiDiModule {
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(
delta,
lazy.pprint`Expected "delta" to be an integer, got ${delta}`

View File

@@ -1,5 +1,3 @@
[invalid.py]
disabled:
if (os == "android") and not fission: bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1865124
[test_iframe]
expected: FAIL