Bug 1531084 - Part 2: Update webidl to have a default value for selector, according to spec. r=smaug
authorByron Campen [:bwc] <docfaraday@gmail.com>
Tue, 12 Mar 2019 00:02:40 +0000
changeset 524786 4839370992776387e26b8115a73e311574efe7c3
parent 524785 5f68ff0281ce6d8520a90cb9a24f3e0ffe0fc79c
child 524787 459a1e1c7b14ad0417b55960538a87db031b7798
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1531084
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1531084 - Part 2: Update webidl to have a default value for selector, according to spec. r=smaug Depends on D23053 Differential Revision: https://phabricator.services.mozilla.com/D23054
dom/webidl/RTCPeerConnection.webidl
--- a/dom/webidl/RTCPeerConnection.webidl
+++ b/dom/webidl/RTCPeerConnection.webidl
@@ -162,17 +162,17 @@ interface RTCPeerConnection : EventTarge
   attribute EventHandler onsignalingstatechange;
   attribute EventHandler onaddstream; // obsolete
   attribute EventHandler onaddtrack;  // obsolete
   attribute EventHandler ontrack;     // replaces onaddtrack and onaddstream.
   attribute EventHandler onremovestream;
   attribute EventHandler oniceconnectionstatechange;
   attribute EventHandler onicegatheringstatechange;
 
-  Promise<RTCStatsReport> getStats (optional MediaStreamTrack? selector);
+  Promise<RTCStatsReport> getStats (optional MediaStreamTrack? selector = null);
 
   // Data channel.
   RTCDataChannel createDataChannel (DOMString label,
                                     optional RTCDataChannelInit dataChannelDict);
   attribute EventHandler ondatachannel;
 };
 
 // Legacy callback API