Bug 1233702 - Remove dom.permissions.enabled pref. r=baku

This commit is contained in:
Birunthan Mohanathas 2016-02-03 18:21:31 +02:00
parent 140c8d06ec
commit 7af69c5623
5 changed files with 4 additions and 18 deletions

View File

@ -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'))

View File

@ -100,7 +100,7 @@ interface NavigatorFeatures {
};
partial interface Navigator {
[Throws, Pref="dom.permissions.enabled"]
[Throws]
readonly attribute Permissions permissions;
};

View File

@ -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;

View File

@ -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);

View File

@ -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);