Bug 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 06 Aug 2018 11:47:30 +0200
changeset 430418 74186b05e255bc6e750c26bd6b8ea01a1ac084ec
parent 430417 4cf920a66ad4ab45fd0640d71c7d7bb7ad0db1c2
child 430419 d55a54eea24d080da25d79fc8f88bd895f386e6b
push id106165
push userjyavenard@mozilla.com
push dateTue, 07 Aug 2018 20:46:45 +0000
treeherdermozilla-inbound@74186b05e255 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1481166
milestone63.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 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D2770
dom/media/mediasource/test/test_ChangeType.html
dom/webidl/SourceBuffer.webidl
--- a/dom/media/mediasource/test/test_ChangeType.html
+++ b/dom/media/mediasource/test/test_ChangeType.html
@@ -5,20 +5,16 @@
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="text/javascript" src="mediasource.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
 <body>
 <pre id="test"><script class="testbody" type="text/javascript">
 
 SimpleTest.waitForExplicitFinish();
-async function setupTest() {
-  await SpecialPowers.pushPrefEnv({"set": [["media.mediasource.experimental.enabled", true]]});
-}
-setupTest();
 
 runWithMSE(function(ms, el) {
   el.controls = true;
   once(ms, "sourceopen").then(function() {
     // Log events for debugging.
     const events = ["suspend", "play", "canplay", "canplaythrough", "loadstart", "loadedmetadata",
                     "loadeddata", "playing", "ended", "error", "stalled", "emptied", "abort",
                     "waiting", "pause", "durationchange", "seeking", "seeked"];
--- a/dom/webidl/SourceBuffer.webidl
+++ b/dom/webidl/SourceBuffer.webidl
@@ -53,11 +53,11 @@ interface SourceBuffer : EventTarget {
   [Throws]
   void remove(double start, unrestricted double end);
   // Experimental function as proposed in:
   // https://github.com/w3c/media-source/issues/100 for promise proposal.
   [Throws, Func="mozilla::dom::MediaSource::ExperimentalEnabled"]
   Promise<void> removeAsync(double start, unrestricted double end);
   // Experimental function as proposed in:
   // https://github.com/w3c/media-source/issues/155
-  [Throws, Func="mozilla::dom::MediaSource::ExperimentalEnabled"]
+  [Throws]
   void changeType(DOMString type);
 };