Use the newly added inCompartments option everywhere it can be

This commit is contained in:
Bastien Orivel 2019-05-25 17:00:10 +02:00
parent 0b29caa554
commit 292d468cd1
22 changed files with 216 additions and 259 deletions

View file

@ -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'],
}
}