Bug 1966206 - [remote] Update "browsingContext.setViewport" command to at least validate the input on Android. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D249122
This commit is contained in:
committed by
hskupin@mozilla.com
parent
d34d138d76
commit
e5d15be83d
@@ -1429,13 +1429,6 @@ class BrowsingContextModule extends RootBiDiModule {
|
||||
userContexts: userContextIds = null,
|
||||
} = options;
|
||||
|
||||
if (lazy.AppInfo.isAndroid) {
|
||||
// Bug 1840084: Add Android support for modifying the viewport.
|
||||
throw new lazy.error.UnsupportedOperationError(
|
||||
`Command not yet supported for ${lazy.AppInfo.name}`
|
||||
);
|
||||
}
|
||||
|
||||
const userContexts = new Set();
|
||||
|
||||
if (contextId !== null) {
|
||||
@@ -1523,6 +1516,13 @@ class BrowsingContextModule extends RootBiDiModule {
|
||||
navigables.add(navigable);
|
||||
}
|
||||
|
||||
if (lazy.AppInfo.isAndroid) {
|
||||
// Bug 1840084: Add Android support for modifying the viewport.
|
||||
throw new lazy.error.UnsupportedOperationError(
|
||||
`Command not yet supported for ${lazy.AppInfo.name}`
|
||||
);
|
||||
}
|
||||
|
||||
const viewportOverride = {
|
||||
devicePixelRatio,
|
||||
viewport,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
[invalid.py]
|
||||
disabled:
|
||||
if os == "android": bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1840084
|
||||
expected:
|
||||
if (os == "mac") and not debug: [OK, TIMEOUT]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
[invalid.py]
|
||||
disabled:
|
||||
if os == "android": bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1840084
|
||||
Reference in New Issue
Block a user