Bug 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 06 Aug 2018 11:47:30 +0200
changeset 430483 74186b05e255bc6e750c26bd6b8ea01a1ac084ec
parent 430482 4cf920a66ad4ab45fd0640d71c7d7bb7ad0db1c2
child 430484 d55a54eea24d080da25d79fc8f88bd895f386e6b
push id34406
push userncsoregi@mozilla.com
push dateWed, 08 Aug 2018 09:58:58 +0000
treeherdermozilla-central@17116905bc07 [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);
 };