diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2019-05-25 17:00:10 +0200 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2019-05-25 17:28:07 +0200 |
commit | 292d468cd1552dd5644e8e0e2bf617b8bcac7655 (patch) | |
tree | 0d4069144e989bfab6ebeea66654654ccbb851c5 /components/script/dom/bindings/codegen | |
parent | 0b29caa5548b0e307f2a891f5082b940c10d5762 (diff) | |
download | servo-292d468cd1552dd5644e8e0e2bf617b8bcac7655.tar.gz servo-292d468cd1552dd5644e8e0e2bf617b8bcac7655.zip |
Use the newly added inCompartments option everywhere it can be
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r-- | components/script/dom/bindings/codegen/Bindings.conf | 85 |
1 files changed, 82 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/Bindings.conf b/components/script/dom/bindings/codegen/Bindings.conf index c8eba92d7b0..e3de60005bc 100644 --- a/components/script/dom/bindings/codegen/Bindings.conf +++ b/components/script/dom/bindings/codegen/Bindings.conf @@ -31,7 +31,9 @@ DOMInterfaces = { }, #FIXME(jdm): This should be 'register': False, but then we don't generate enum types -'TestBinding': {}, +'TestBinding': { + 'inCompartments': ['PromiseAttribute', 'PromiseNativeHandler'], +}, 'URL': { 'weakReferenceable': True, @@ -50,8 +52,85 @@ DOMInterfaces = { 'inCompartments': ['Fetch'], }, -'TestBinding': { - 'inCompartments': ['PromiseAttribute'], +'CustomElementRegistry': { + 'inCompartments': ['WhenDefined'], +}, + +'AudioContext': { + 'inCompartments': ['Suspend', 'Close'], +}, + +'NavigationPreloadManager': { + 'inCompartments': ['Enable', 'Disable', 'SetHeaderValue', 'GetState'], +}, + +'HTMLMediaElement': { + 'inCompartments': ['Play'], +}, + +'BluetoothRemoteGATTDescriptor': { + 'inCompartments': ['ReadValue', 'WriteValue'], +}, + +'OfflineAudioContext': { + 'inCompartments': ['StartRendering'], +}, + +'BluetoothRemoteGATTServer': { + 'inCompartments': ['Connect'], +}, + +'ServiceWorkerContainer': { + 'inCompartments': ['Register'], +}, + +'Navigator': { + 'inCompartments': ['GetVRDisplays'], +}, + +'MediaDevices': { + 'inCompartments': ['GetUserMedia'], }, +'XRSession': { + 'inCompartments': ['UpdateRenderState', 'RequestReferenceSpace'], +}, + +'Bluetooth': { + 'inCompartments': ['RequestDevice', 'GetAvailability'], +}, + +'BaseAudioContext': { + 'inCompartments': ['Resume', 'DecodeAudioData'], +}, + +'RTCPeerConnection': { + 'inCompartments': ['AddIceCandidate', 'CreateOffer', 'CreateAnswer', 'SetLocalDescription', 'SetRemoteDescription'], +}, + +'BluetoothRemoteGATTCharacteristic': { + 'inCompartments': ['ReadValue', 'WriteValue', 'StartNotifications', 'StopNotifications'], +}, + +'VRDisplay': { + 'inCompartments': ['RequestPresent', 'ExitPresent'], +}, + +'Worklet': { + 'inCompartments': ['AddModule'], +}, + +'TestWorklet': { + 'inCompartments': ['AddModule'], +}, + +'BluetoothDevice': { + 'inCompartments': ['WatchAdvertisements'], +}, + +'XR': { + 'inCompartments': ['SupportsSessionMode', 'RequestSession'], +} + + } |