mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Disable nonstandard interfaces via prefs.
This commit is contained in:
parent
bb47f72f25
commit
91a78ed109
16 changed files with 22 additions and 13 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetooth
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface Bluetooth {
|
||||
// Promise<BluetoothDevice> requestDevice(RequestDeviceOptions options);
|
||||
BluetoothDevice? requestDevice(/*RequestDeviceOptions options*/);
|
||||
|
|
|
@ -12,6 +12,7 @@ interface BluetoothServiceDataMap {
|
|||
readonly maplike<UUID, DataView>;
|
||||
};*/
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothAdvertisingData {
|
||||
readonly attribute unsigned short? appearance;
|
||||
readonly attribute byte? txPower;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#characteristicproperties
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothCharacteristicProperties {
|
||||
readonly attribute boolean broadcast;
|
||||
readonly attribute boolean read;
|
||||
|
|
|
@ -10,6 +10,7 @@ enum VendorIDSource {
|
|||
"usb"
|
||||
};
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothDevice {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute DOMString? name;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTCharacteristic {
|
||||
readonly attribute BluetoothRemoteGATTService service;
|
||||
readonly attribute DOMString uuid;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// http://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTDescriptor {
|
||||
readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
|
||||
readonly attribute DOMString uuid;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
//https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattserver
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTServer {
|
||||
readonly attribute BluetoothDevice device;
|
||||
readonly attribute boolean connected;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattservice
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTService {
|
||||
readonly attribute BluetoothDevice device;
|
||||
readonly attribute DOMString uuid;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothUUID {
|
||||
[Throws]
|
||||
static UUID getService(BluetoothServiceUUID name);
|
||||
|
|
|
@ -72,7 +72,8 @@ dictionary TestDictionaryDefaults {
|
|||
|
||||
[Constructor,
|
||||
Constructor(sequence<unrestricted double> numberSequence),
|
||||
Constructor(unrestricted double num)]
|
||||
Constructor(unrestricted double num),
|
||||
Pref="dom.testbinding.enabled"]
|
||||
interface TestBinding {
|
||||
attribute boolean booleanAttribute;
|
||||
attribute byte byteAttribute;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
|
||||
[Pref="dom.testbinding.enabled"]
|
||||
interface TestBindingProxy : TestBinding {
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue