Bug 1524074 - Enable "marionette.setpermission.enabled" preference for wpt tests. r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D210608
This commit is contained in:
Alexandra Borovova 2024-05-22 07:56:25 +00:00
parent ed5d053e37
commit e960a7761b
26 changed files with 26 additions and 88 deletions

View file

@ -96,3 +96,6 @@ user_pref("network.captive-portal-service.enabled", false);
user_pref("network.http.http2.websockets", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);
// Enable setPermission API in Marionette.
// This preference will be removed with a fix on bug 1897180.
user_pref("marionette.setpermission.enabled", true);

View file

@ -1 +1 @@
prefs: [dom.events.asyncClipboard.clipboardItem: true, dom.events.asyncClipboard.readText: true, marionette.setpermission.enabled:true]
prefs: [dom.events.asyncClipboard.clipboardItem: true, dom.events.asyncClipboard.readText: true]

View file

@ -1,19 +1,6 @@
[PositionOptions.https.html]
expected: ERROR
[Call getCurrentPosition with wrong type for enableHighAccuracy. No exception expected.]
[Set timeout and maximumAge to 0, check that timeout error raised (watchPosition)]
expected: FAIL
[Call watchPosition with wrong type for enableHighAccuracy. No exception expected.]
expected: NOTRUN
[Set timeout and maximumAge to 0, check that timeout error raised (getCurrentPosition)]
expected: NOTRUN
[Set timeout and maximumAge to 0, check that timeout error raised (watchPosition)]
expected: NOTRUN
[Check that a negative timeout and maxAge values are clamped to 0 (getCurrentPosition)]
expected: NOTRUN
[Check that a negative timeout and maxAge values are clamped to 0 (watchPosition)]
expected: NOTRUN
expected: FAIL

View file

@ -1,10 +1,3 @@
[disabled-by-permissions-policy.https.sub.html]
expected: ERROR
[Permissions-Policy header geolocation=() disallows the top-level document.]
expected: NOTRUN
[Permissions-Policy header geolocation=() disallows same-origin iframes.]
expected: NOTRUN
[Permissions-Policy header geolocation=() disallows cross-origin iframes.]
expected: NOTRUN
expected: FAIL

View file

@ -1,10 +1,3 @@
[enabled-by-permissions-policy.https.sub.html]
expected: ERROR
[Permissions-Policy header geolocation=* allows the top-level document.]
expected: NOTRUN
[Permissions-Policy header geolocation=* allows same-origin iframes.]
expected: NOTRUN
[Permissions-Policy header geolocation=* allows cross-origin iframes.]
expected: NOTRUN
expected: FAIL

View file

@ -1,10 +1,3 @@
[enabled-on-self-origin-by-permissions-policy.https.sub.html]
expected: ERROR
[Permissions-Policy header geolocation=(self) allows the top-level document.]
expected: NOTRUN
[Permissions-Policy header geolocation=(self) allows same-origin iframes.]
expected: NOTRUN
[Permissions-Policy header geolocation=(self) disallows cross-origin iframes.]
expected: NOTRUN
expected: FAIL

View file

@ -1,7 +1,7 @@
[getCurrentPosition_permission_allow.https.html]
expected: ERROR
expected: TIMEOUT
[User allows access, check that success callback is called.]
expected: FAIL
[Error callback is nullable for getCurrentPosition().]
expected: NOTRUN
expected: TIMEOUT

View file

@ -1,6 +1,3 @@
[getCurrentPosition_permission_deny.https.html]
expected:
if (os == "android") and fission: [ERROR, TIMEOUT]
ERROR
[User denies access, check that error callback is called with correct code]
expected: FAIL

View file

@ -1,6 +1,3 @@
[non-fully-active.https.html]
expected:
if (os == "android") and fission: [ERROR, TIMEOUT]
ERROR
[non-fully active document behavior]
expected: FAIL

View file

@ -1,9 +0,0 @@
[watchPosition_permission_deny.https.html]
expected:
if (os == "android") and fission: [ERROR, TIMEOUT]
ERROR
[Check that watchPosition returns synchronously before any callbacks are invoked.]
expected: FAIL
[User denies access, check that error callback is called.]
expected: NOTRUN

View file

@ -1,8 +0,0 @@
[set_permission.https.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[Grant Permission]
expected: FAIL
[Deny Permission]
expected: FAIL

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true,marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]
[event-onclose.https.html]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1816427

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true,marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]
[event-onshow.https.html]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1816427

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true, dom.webnotifications.loglevel:All]
prefs: [notification.prompt.testing:true, dom.webnotifications.loglevel:All]
[getnotifications-across-processes.https.window.html]
[Get notification created from window]
expected:

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]
[instance.https.window.html]
expected:
if (os == "linux") and not debug and not asan and not tsan: [OK, TIMEOUT]

View file

@ -1 +1 @@
prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]

View file

@ -1 +0,0 @@
prefs: [marionette.setpermission.enabled:true]

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]
[getnotifications-across-processes.https.window.html]
[Get notification created from window]
expected:

View file

@ -1,4 +1,4 @@
prefs: [notification.prompt.testing:true,marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true]
[tag.https.html]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1891536

View file

@ -1,4 +0,0 @@
[permissions-cg.https.html]
expected: ERROR
[status is not garbage collected when it goes out of scope]
expected: TIMEOUT

View file

@ -1,4 +0,0 @@
[permissions-garbage-collect.https.html]
expected: ERROR
[Events fire even if the status object is garbage collected]
expected: FAIL

View file

@ -1,4 +1,4 @@
# https://bugzilla.mozilla.org/show_bug.cgi?id=1497427
implementation-status: backlog
lsan-allowed: [Alloc, Create, Malloc, Realloc, Then, mozilla::BasePrincipal::CreateContentPrincipal, mozilla::dom::DocGroup::Create, mozilla::dom::ServiceWorkerManager::Unregister, mozilla::dom::ServiceWorkerRegistrationMainThread::Unregister, mozilla::dom::UnregisterCallback::UnregisterCallback, mozilla::net::nsStandardURL::TemplatedMutator, operator]
prefs: [notification.prompt.testing:true, dom.push.testing.ignorePermission:true, marionette.setpermission.enabled:true]
prefs: [notification.prompt.testing:true, dom.push.testing.ignorePermission:true]

View file

@ -1 +1 @@
prefs: [marionette.setpermission.enabled:true, dom.screenwakelock.enabled:true]
prefs: [dom.screenwakelock.enabled:true]

View file

@ -1,3 +1,3 @@
prefs:
if os == "android": [marionette.setpermission.enabled:true, dom.storage_access.auto_grants:false, dom.storage_access.prompt.testing:true, dom.storage_access.prompt.testing.allow:false, network.cookie.cookieBehavior:5]
[marionette.setpermission.enabled:true, dom.storage_access.auto_grants:false, dom.storage_access.prompt.testing:true, dom.storage_access.prompt.testing.allow:false]
if os == "android": [dom.storage_access.auto_grants:false, dom.storage_access.prompt.testing:true, dom.storage_access.prompt.testing.allow:false, network.cookie.cookieBehavior:5]
[dom.storage_access.auto_grants:false, dom.storage_access.prompt.testing:true, dom.storage_access.prompt.testing.allow:false]

View file

@ -232,7 +232,8 @@
if os == "android": FAIL
[idl_test setup]
expected: FAIL
expected:
if os == "android": FAIL
[MIDIConnectionEvent interface: existence and properties of interface object]
expected:

View file

@ -1,8 +1,8 @@
[set_permission.https.html]
[Grant Permission]
expected:
if product != "chrome": FAIL
if product != "safari": FAIL
[Deny Permission]
expected:
if product != "chrome": FAIL
if product != "safari": FAIL