Skip to content

Commit

Permalink
Hide interfaces behind webrtc pref
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Jun 30, 2020
1 parent a4f1bc2 commit 27f439a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/webidls/RTCDataChannel.webidl
Expand Up @@ -4,7 +4,7 @@

// https://w3c.github.io/webrtc-pc/#dom-rtcdatachannel

[Exposed=Window]
[Exposed=Window, Pref="dom.webrtc.enabled"]
interface RTCDataChannel : EventTarget {
readonly attribute USVString label;
readonly attribute boolean ordered;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/RTCDataChannelEvent.webidl
Expand Up @@ -4,7 +4,7 @@

// https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelevent

[Exposed=Window]
[Exposed=Window, Pref="dom.webrtc.enabled"]
interface RTCDataChannelEvent : Event {
constructor(DOMString type, RTCDataChannelEventInit eventInitDict);
readonly attribute RTCDataChannel channel;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/RTCError.webidl
Expand Up @@ -4,7 +4,7 @@

// https://w3c.github.io/webrtc-pc/#dom-rtcerror

[Exposed=Window]
[Exposed=Window, Pref="dom.webrtc.enabled"]
interface RTCError : DOMException {
constructor(RTCErrorInit init, optional DOMString message = "");
readonly attribute RTCErrorDetailType errorDetail;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/RTCErrorEvent.webidl
Expand Up @@ -4,7 +4,7 @@

// https://w3c.github.io/webrtc-pc/#dom-rtcerrorevent

[Exposed=Window]
[Exposed=Window, Pref="dom.webrtc.enabled"]
interface RTCErrorEvent : Event {
constructor(DOMString type, RTCErrorEventInit eventInitDict);
[SameObject] readonly attribute RTCError error;
Expand Down
2 changes: 1 addition & 1 deletion tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -13952,7 +13952,7 @@
]
],
"interfaces.html": [
"0776b2873c16cd34bdc85c23f44030729eaae524",
"145c902ff033ba1de46b41dec07992fae4fd2f13",
[
null,
{}
Expand Down

0 comments on commit 27f439a

Please sign in to comment.