Skip to content

Commit

Permalink
Fix Permissions and Bluetooth prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
dati91 committed Feb 13, 2017
1 parent 5287cd3 commit 52680bb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Expand Up @@ -23,7 +23,7 @@ dictionary BluetoothPermissionData {
required sequence<AllowedBluetoothDevice> allowedDevices/* = []*/;
};

// [Pref="dom.bluetooth.enabled"]
[Pref="dom.bluetooth.enabled"]
interface BluetoothPermissionResult : PermissionStatus {
// attribute FrozenArray<BluetoothDevice> devices;
// Workaround until FrozenArray get implemented.
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/Navigator.webidl
Expand Up @@ -66,5 +66,5 @@ partial interface Navigator {
// https://w3c.github.io/permissions/#navigator-and-workernavigator-extension
[Exposed=(Window)]
partial interface Navigator {
readonly attribute Permissions permissions;
[Pref="dom.permissions.enabled"] readonly attribute Permissions permissions;
};
2 changes: 1 addition & 1 deletion components/script/dom/webidls/PermissionStatus.webidl
Expand Up @@ -28,7 +28,7 @@ enum PermissionName {
"persistent-storage",
};

[Exposed=(Window,Worker)]
[Pref="dom.permissions.enabled", Exposed=(Window,Worker)]
interface PermissionStatus : EventTarget {
readonly attribute PermissionState state;
attribute EventHandler onchange;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/Permissions.webidl
Expand Up @@ -4,7 +4,7 @@

// https://w3c.github.io/permissions/#permissions-interface

[Exposed=(Window,Worker)]
[Pref="dom.permissions.enabled", Exposed=(Window,Worker)]
interface Permissions {
Promise<PermissionStatus> query(object permissionDesc);

Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/WorkerNavigator.webidl
Expand Up @@ -13,5 +13,5 @@ WorkerNavigator implements NavigatorLanguage;

[Exposed=(Worker)]
partial interface WorkerNavigator {
readonly attribute Permissions permissions;
[Pref="dom.permissions.enabled"] readonly attribute Permissions permissions;
};
1 change: 1 addition & 0 deletions resources/prefs.json
Expand Up @@ -4,6 +4,7 @@
"dom.forcetouch.enabled": false,
"dom.mouseevent.which.enabled": false,
"dom.mozbrowser.enabled": false,
"dom.permissions.enabled": false,
"dom.serviceworker.timeout_seconds": 60,
"dom.testable_crash.enabled": false,
"dom.testbinding.enabled": false,
Expand Down

0 comments on commit 52680bb

Please sign in to comment.