summaryrefslogtreecommitdiff
path: root/dom/webidl/RTCSessionDescription.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/RTCSessionDescription.webidl')
-rw-r--r--dom/webidl/RTCSessionDescription.webidl9
1 files changed, 5 insertions, 4 deletions
diff --git a/dom/webidl/RTCSessionDescription.webidl b/dom/webidl/RTCSessionDescription.webidl
index 07bfb36f02..4dafe01e1b 100644
--- a/dom/webidl/RTCSessionDescription.webidl
+++ b/dom/webidl/RTCSessionDescription.webidl
@@ -15,16 +15,17 @@ enum RTCSdpType {
};
dictionary RTCSessionDescriptionInit {
- RTCSdpType? type = null;
- DOMString? sdp = "";
+ required RTCSdpType type;
+ DOMString sdp = "";
};
[Pref="media.peerconnection.enabled",
JSImplementation="@mozilla.org/dom/rtcsessiondescription;1",
Constructor(optional RTCSessionDescriptionInit descriptionInitDict)]
interface RTCSessionDescription {
- attribute RTCSdpType? type;
- attribute DOMString? sdp;
+ // These should be readonly, but writing causes deprecation warnings for a bit
+ attribute RTCSdpType type;
+ attribute DOMString sdp;
jsonifier;
};