mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix Permissions and Bluetooth prefs
This commit is contained in:
parent
5287cd3bea
commit
52680bba6b
6 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -13,5 +13,5 @@ WorkerNavigator implements NavigatorLanguage;
|
|||
|
||||
[Exposed=(Worker)]
|
||||
partial interface WorkerNavigator {
|
||||
readonly attribute Permissions permissions;
|
||||
[Pref="dom.permissions.enabled"] readonly attribute Permissions permissions;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue