diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 305839469..2bef2e3e5 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -12925,6 +12925,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -13017,6 +13023,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** Available only in secure contexts. */ @@ -30074,11 +30086,23 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + /** + * The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/local) + */ local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + /** + * The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/remote) + */ remote: RTCIceCandidate; } diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 51789b219..9279d8f58 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -12914,6 +12914,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -13006,6 +13012,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** Available only in secure contexts. */ @@ -30050,11 +30062,23 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + /** + * The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/local) + */ local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + /** + * The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/remote) + */ remote: RTCIceCandidate; } diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index edd7f9a53..3e40780bb 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -12922,6 +12922,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -13014,6 +13020,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** Available only in secure contexts. */ @@ -30071,11 +30083,23 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + /** + * The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/local) + */ local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + /** + * The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/remote) + */ remote: RTCIceCandidate; } diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 2c14f0481..d769aaf68 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -12922,6 +12922,12 @@ interface DeviceMotionEvent extends Event { declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + /** + * The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** @@ -13014,6 +13020,12 @@ interface DeviceOrientationEvent extends Event { declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + /** + * The **`requestPermission()`** static method of the DeviceOrientationEvent interface requests the user's permission to access device orientation data from the accelerometer and gyroscope sensors. It can also request permission to access magnetometer data when absolute orientation is needed. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/requestPermission_static) + */ + requestPermission(): Promise; }; /** Available only in secure contexts. */ @@ -30071,11 +30083,23 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; -/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. */ +/** + * The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. It is used as the return value from RTCIceTransport.getSelectedCandidatePair() to identify the currently-selected candidate pair identified by the ICE agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair) + */ interface RTCIceCandidatePair { - /** The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */ + /** + * The **`local`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/local) + */ local: RTCIceCandidate; - /** The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. */ + /** + * The **`remote`** property of the RTCIceCandidatePair dictionary specifies the RTCIceCandidate describing the configuration of the remote end of a viable WebRTC connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidatePair/remote) + */ remote: RTCIceCandidate; } diff --git a/inputfiles/patches/device-motion.kdl b/inputfiles/patches/device-motion.kdl index 406b03487..dc11bdae1 100644 --- a/inputfiles/patches/device-motion.kdl +++ b/inputfiles/patches/device-motion.kdl @@ -1,2 +1,10 @@ interface DeviceMotionEventAcceleration noInterfaceObject=#true interface DeviceMotionEventRotationRate noInterfaceObject=#true + +removals { + interface DeviceOrientationEvent { + method requestPermission signatureIndex=0 { + param absolute // No implementation as of 2026-11 + } + } +} diff --git a/inputfiles/patches/webrtc.kdl b/inputfiles/patches/webrtc.kdl index ed2c3edfd..838b51cda 100644 --- a/inputfiles/patches/webrtc.kdl +++ b/inputfiles/patches/webrtc.kdl @@ -22,3 +22,11 @@ interface RTCSctpTransport { type nullable=#false } } + +// Technically RTCIceCandidatePair is a dictionary in WebKit and Blink as of 2026-11, +// But this has been an interface here since 2024 and I'm not sure it's worth +// going back and forth here. For now let's just make it work. +interface RTCIceCandidatePair { + property local exposed="Window Worker" + property remote exposed="Window Worker" +} diff --git a/package-lock.json b/package-lock.json index 1562f2992..985401413 100644 --- a/package-lock.json +++ b/package-lock.json @@ -365,9 +365,9 @@ "license": "MIT" }, "node_modules/@mdn/browser-compat-data": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.7.tgz", - "integrity": "sha512-8/oqL9veg9C6d0wKprPmt+ZCmfNKBG4AcphWh50E9r1IflJHZfZKHu7c5G7ObupYG6azAXr3KdBX0EssnjCPSQ==", + "version": "8.0.9", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.9.tgz", + "integrity": "sha512-CSBqqNiMPRLpG/rY0YHLHoncsHuHd9oTA7QRLHwWUOOnQiEjxuF4sCAAI4bd75FG7WlOP/GMt6P2oN6kysjN8Q==", "dev": true, "license": "CC0-1.0" },