diff --git a/components/script/dom/webidls/Bluetooth.webidl b/components/script/dom/webidls/Bluetooth.webidl index e2a7bb57130..4199e0bc486 100644 --- a/components/script/dom/webidls/Bluetooth.webidl +++ b/components/script/dom/webidls/Bluetooth.webidl @@ -4,6 +4,7 @@ // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth +[Pref="dom.bluetooth.enabled"] interface Bluetooth { // Promise requestDevice(RequestDeviceOptions options); BluetoothDevice? requestDevice(/*RequestDeviceOptions options*/); diff --git a/components/script/dom/webidls/BluetoothAdvertisingData.webidl b/components/script/dom/webidls/BluetoothAdvertisingData.webidl index e49024df669..27583a95e4e 100644 --- a/components/script/dom/webidls/BluetoothAdvertisingData.webidl +++ b/components/script/dom/webidls/BluetoothAdvertisingData.webidl @@ -12,6 +12,7 @@ interface BluetoothServiceDataMap { readonly maplike; };*/ +[Pref="dom.bluetooth.enabled"] interface BluetoothAdvertisingData { readonly attribute unsigned short? appearance; readonly attribute byte? txPower; diff --git a/components/script/dom/webidls/BluetoothCharacteristicProperties.webidl b/components/script/dom/webidls/BluetoothCharacteristicProperties.webidl index 9e7e2bb3831..381ee568462 100644 --- a/components/script/dom/webidls/BluetoothCharacteristicProperties.webidl +++ b/components/script/dom/webidls/BluetoothCharacteristicProperties.webidl @@ -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; diff --git a/components/script/dom/webidls/BluetoothDevice.webidl b/components/script/dom/webidls/BluetoothDevice.webidl index 1c0c56cd1e7..3a32dc38179 100644 --- a/components/script/dom/webidls/BluetoothDevice.webidl +++ b/components/script/dom/webidls/BluetoothDevice.webidl @@ -10,6 +10,7 @@ enum VendorIDSource { "usb" }; +[Pref="dom.bluetooth.enabled"] interface BluetoothDevice { readonly attribute DOMString id; readonly attribute DOMString? name; diff --git a/components/script/dom/webidls/BluetoothRemoteGATTCharacteristic.webidl b/components/script/dom/webidls/BluetoothRemoteGATTCharacteristic.webidl index 2648d0bf654..e6ba9c89d2a 100644 --- a/components/script/dom/webidls/BluetoothRemoteGATTCharacteristic.webidl +++ b/components/script/dom/webidls/BluetoothRemoteGATTCharacteristic.webidl @@ -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; diff --git a/components/script/dom/webidls/BluetoothRemoteGATTDescriptor.webidl b/components/script/dom/webidls/BluetoothRemoteGATTDescriptor.webidl index dc367a5fe8e..c7abe9e4859 100644 --- a/components/script/dom/webidls/BluetoothRemoteGATTDescriptor.webidl +++ b/components/script/dom/webidls/BluetoothRemoteGATTDescriptor.webidl @@ -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; diff --git a/components/script/dom/webidls/BluetoothRemoteGATTServer.webidl b/components/script/dom/webidls/BluetoothRemoteGATTServer.webidl index 8d360a7b31a..327542b522f 100644 --- a/components/script/dom/webidls/BluetoothRemoteGATTServer.webidl +++ b/components/script/dom/webidls/BluetoothRemoteGATTServer.webidl @@ -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; diff --git a/components/script/dom/webidls/BluetoothRemoteGATTService.webidl b/components/script/dom/webidls/BluetoothRemoteGATTService.webidl index 63ae0e090a5..e8d66f6ac63 100644 --- a/components/script/dom/webidls/BluetoothRemoteGATTService.webidl +++ b/components/script/dom/webidls/BluetoothRemoteGATTService.webidl @@ -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; diff --git a/components/script/dom/webidls/BluetoothUUID.webidl b/components/script/dom/webidls/BluetoothUUID.webidl index 00421cde65a..fb0bad5451e 100644 --- a/components/script/dom/webidls/BluetoothUUID.webidl +++ b/components/script/dom/webidls/BluetoothUUID.webidl @@ -4,6 +4,7 @@ // https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid +[Pref="dom.bluetooth.enabled"] interface BluetoothUUID { [Throws] static UUID getService(BluetoothServiceUUID name); diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl index aec682bc307..4b4265f326a 100644 --- a/components/script/dom/webidls/TestBinding.webidl +++ b/components/script/dom/webidls/TestBinding.webidl @@ -72,7 +72,8 @@ dictionary TestDictionaryDefaults { [Constructor, Constructor(sequence numberSequence), - Constructor(unrestricted double num)] + Constructor(unrestricted double num), + Pref="dom.testbinding.enabled"] interface TestBinding { attribute boolean booleanAttribute; attribute byte byteAttribute; diff --git a/components/script/dom/webidls/TestBindingProxy.webidl b/components/script/dom/webidls/TestBindingProxy.webidl index 121ea1a3da8..61ef19db296 100644 --- a/components/script/dom/webidls/TestBindingProxy.webidl +++ b/components/script/dom/webidls/TestBindingProxy.webidl @@ -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; diff --git a/tests/wpt/mozilla/meta/mozilla/preferences.html.ini b/tests/wpt/mozilla/meta/mozilla/preferences.html.ini index dad937dd5a9..83de4dd69cd 100644 --- a/tests/wpt/mozilla/meta/mozilla/preferences.html.ini +++ b/tests/wpt/mozilla/meta/mozilla/preferences.html.ini @@ -1,3 +1,3 @@ [preferences.html] type: testharness - prefs: [dom.testbinding.preference_value.falsy:false, dom.testbinding.preference_value.truthy:true, dom.testbinding.preference_value.string_empty:, dom.testbinding.preference_value.string_test:test, dom.testbinding.preference_value.space_string_test:test1 test2, dom.testbinding.preference_value.quote_string_test:"test1 test2"] + prefs: [dom.testbinding.enabled:true, dom.testbinding.preference_value.falsy:false, dom.testbinding.preference_value.truthy:true, dom.testbinding.preference_value.string_empty:, dom.testbinding.preference_value.string_test:test, dom.testbinding.preference_value.space_string_test:test1 test2, dom.testbinding.preference_value.quote_string_test:"test1 test2"] diff --git a/tests/wpt/mozilla/meta/mozilla/sequence-hole.html.ini b/tests/wpt/mozilla/meta/mozilla/sequence-hole.html.ini new file mode 100644 index 00000000000..e3da43f8d3b --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/sequence-hole.html.ini @@ -0,0 +1,3 @@ +[sequence-hole.html] + type: testharness + prefs: [dom.testbinding.enabled:true] diff --git a/tests/wpt/mozilla/meta/mozilla/variadic-interface.html.ini b/tests/wpt/mozilla/meta/mozilla/variadic-interface.html.ini new file mode 100644 index 00000000000..f21720b9363 --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/variadic-interface.html.ini @@ -0,0 +1,3 @@ +[variadic-interface.html] + type: testharness + prefs: [dom.testbinding.enabled:true] diff --git a/tests/wpt/mozilla/meta/mozilla/weakref.html.ini b/tests/wpt/mozilla/meta/mozilla/weakref.html.ini new file mode 100644 index 00000000000..3c694147814 --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/weakref.html.ini @@ -0,0 +1,3 @@ +[weakref.html] + type: testharness + prefs: [dom.testbinding.enabled:true] diff --git a/tests/wpt/mozilla/tests/mozilla/interfaces.html b/tests/wpt/mozilla/tests/mozilla/interfaces.html index 31495c457f0..e8dde3e906c 100644 --- a/tests/wpt/mozilla/tests/mozilla/interfaces.html +++ b/tests/wpt/mozilla/tests/mozilla/interfaces.html @@ -74,15 +74,6 @@ var ecmaGlobals = [ var interfaceNamesInGlobalScope = [ "Attr", "Blob", - "Bluetooth", - "BluetoothAdvertisingData", - "BluetoothCharacteristicProperties", - "BluetoothDevice", - "BluetoothRemoteGATTCharacteristic", - "BluetoothRemoteGATTDescriptor", - "BluetoothRemoteGATTServer", - "BluetoothRemoteGATTService", - "BluetoothUUID", "CanvasGradient", "CanvasRenderingContext2D", "CanvasPattern", @@ -215,8 +206,6 @@ var interfaceNamesInGlobalScope = [ "StorageEvent", "StyleSheet", "StyleSheetList", - "TestBinding", // XXX - "TestBindingProxy", // XXX "Text", "TextDecoder", "TextEncoder",