mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1233702 - Remove dom.permissions.enabled pref. r=baku
This commit is contained in:
parent
140c8d06ec
commit
7af69c5623
@ -31,14 +31,6 @@ const UNSUPPORTED_PERMISSIONS = [
|
||||
'midi'
|
||||
];
|
||||
|
||||
function setup() {
|
||||
return new Promise((resolve, reject) => {
|
||||
SpecialPowers.pushPrefEnv({'set': [
|
||||
['dom.permissions.enabled', true],
|
||||
]}, resolve);
|
||||
});
|
||||
}
|
||||
|
||||
function setPermissions(action) {
|
||||
let permissions = PERMISSIONS.map(x => {
|
||||
return { 'type': x.perm, 'allow': action, 'context': document };
|
||||
@ -111,8 +103,7 @@ function testInvalidQuery() {
|
||||
}
|
||||
|
||||
function runTests() {
|
||||
setup()
|
||||
.then(checkUnsupportedPermissions)
|
||||
checkUnsupportedPermissions()
|
||||
.then(checkUserVisiblePushPermission)
|
||||
.then(() => setPermissions(UNKNOWN_ACTION))
|
||||
.then(() => checkPermissions('prompt'))
|
||||
|
@ -100,7 +100,7 @@ interface NavigatorFeatures {
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
[Throws, Pref="dom.permissions.enabled"]
|
||||
[Throws]
|
||||
readonly attribute Permissions permissions;
|
||||
};
|
||||
|
||||
|
@ -13,8 +13,7 @@ enum PermissionState {
|
||||
"prompt"
|
||||
};
|
||||
|
||||
[Exposed=(Window),
|
||||
Pref="dom.permissions.enabled"]
|
||||
[Exposed=(Window)]
|
||||
interface PermissionStatus : EventTarget {
|
||||
readonly attribute PermissionState state;
|
||||
attribute EventHandler onchange;
|
||||
|
@ -22,8 +22,7 @@ dictionary PushPermissionDescriptor : PermissionDescriptor {
|
||||
boolean userVisible = false;
|
||||
};
|
||||
|
||||
[Exposed=(Window),
|
||||
Pref="dom.permissions.enabled"]
|
||||
[Exposed=(Window)]
|
||||
interface Permissions {
|
||||
[Throws]
|
||||
Promise<PermissionStatus> query(object permission);
|
||||
|
@ -129,9 +129,6 @@ pref("dom.indexedDB.logging.profiler-marks", false);
|
||||
// Whether or not File Handle is enabled.
|
||||
pref("dom.fileHandle.enabled", true);
|
||||
|
||||
// Whether or not the Permissions API is enabled.
|
||||
pref("dom.permissions.enabled", true);
|
||||
|
||||
// Whether or not selection events are enabled
|
||||
#ifdef NIGHTLY_BUILD
|
||||
pref("dom.select_events.enabled", true);
|
||||
|
Loading…
Reference in New Issue
Block a user