Backed out 2 changesets (bug 1592140) for ES Lint failure on head.js. CLOSED TREE
authorRazvan Maries <rmaries@mozilla.com>
Wed, 20 Nov 2019 01:07:42 +0200
changeset 502709 08ad786aea866a6f9b029812f326f9644d98ea00
parent 502708 e050f35bd4c2b8e482b0a1ba6b7bf846ff47cd10
child 502710 5e463f98aabbc479360d7a67a3127ddbf1cda4f0
push id100998
push userrmaries@mozilla.com
push dateTue, 19 Nov 2019 23:08:29 +0000
treeherderautoland@08ad786aea86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1592140
milestone72.0a1
backs out998ab0bd0e35beee827d02f3fde27948c83c243f
382a205bcb3e3d41be3e73fe02a1831ea8d7a057
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
Backed out 2 changesets (bug 1592140) for ES Lint failure on head.js. CLOSED TREE Backed out changeset 998ab0bd0e35 (bug 1592140) Backed out changeset 382a205bcb3e (bug 1592140)
dom/media/tests/mochitest/head.js
dom/media/tests/mochitest/test_peerConnection_addSecondVideoStream.html
dom/media/tests/mochitest/test_peerConnection_addSecondVideoStreamNoBundle.html
dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d.html
dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d_noSSRC.html
dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_webgl.html
dom/media/tests/mochitest/test_peerConnection_disabledVideoPreNegotiation.html
dom/media/tests/mochitest/test_peerConnection_maxFsConstraint.html
dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
dom/media/tests/mochitest/test_peerConnection_recordReceiveTrack.html
dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrack.html
dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrackNoBundle.html
dom/media/tests/mochitest/test_peerConnection_removeVideoTrack.html
dom/media/tests/mochitest/test_peerConnection_renderAfterRenegotiation.html
dom/media/tests/mochitest/test_peerConnection_replaceVideoThenRenegotiate.html
dom/media/tests/mochitest/test_peerConnection_setParameters_scaleResolutionDownBy.html
dom/media/tests/mochitest/test_peerConnection_stats.html
dom/media/tests/mochitest/test_peerConnection_trackDisabling_clones.html
dom/media/tests/mochitest/test_peerConnection_verifyVideoAfterRenegotiation.html
dom/media/tests/mochitest/test_peerConnection_videoRenegotiationInactiveAnswer.html
modules/libpref/init/StaticPrefList.yaml
--- a/dom/media/tests/mochitest/head.js
+++ b/dom/media/tests/mochitest/head.js
@@ -421,16 +421,19 @@ function pushPrefs(...p) {
 function setupEnvironment() {
   if (!window.SimpleTest) {
     // Running under Steeplechase
     return;
   }
 
   var defaultMochitestPrefs = {
     set: [
+      // We can't use the Fake H.264 GMP encoder with a real decoder until
+      // bug 1509012 is done. So force using the Fake H.264 GMP decoder for now.
+      ["media.navigator.mediadatadecoder_h264_enabled", false],
       ["media.peerconnection.enabled", true],
       ["media.peerconnection.identity.enabled", true],
       ["media.peerconnection.identity.timeout", 120000],
       ["media.peerconnection.ice.stun_client_maximum_transmits", 14],
       ["media.peerconnection.ice.trickle_grace_period", 30000],
       ["media.peerconnection.rtpsourcesapi.enabled", true],
       ["media.navigator.permission.disabled", true],
       // If either fake audio or video is desired we enable fake streams.
@@ -447,23 +450,16 @@ function setupEnvironment() {
 
   if (isAndroid) {
     defaultMochitestPrefs.set.push(
       ["media.navigator.video.default_width", 320],
       ["media.navigator.video.default_height", 240],
       ["media.navigator.video.max_fr", 10],
       ["media.autoplay.default", Ci.nsIAutoplay.ALLOWED]
     );
-  } else {
-    // For platforms other than Android, the tests use Fake H.264 GMP encoder.
-    // We can't use that with a real decoder until bug 1509012 is done.
-    // So force using the Fake H.264 GMP decoder for now.
-    defaultMochitestPrefs.set.push(
-      ["media.navigator.mediadatadecoder_h264_enabled", false]
-    );
   }
 
   // Running as a Mochitest.
   SimpleTest.requestFlakyTimeout("WebRTC inherently depends on timeouts");
   window.finish = () => SimpleTest.finish();
   SpecialPowers.pushPrefEnv(defaultMochitestPrefs, setTestOptions);
 
   // We don't care about waiting for this to complete, we just want to ensure
--- a/dom/media/tests/mochitest/test_peerConnection_addSecondVideoStream.html
+++ b/dom/media/tests/mochitest/test_peerConnection_addSecondVideoStream.html
@@ -15,18 +15,17 @@
   runNetworkTest(async function (options) {
     // Use fake video here since the native fake device on linux doesn't
     // change color as needed by checkVideoPlaying() below.
     await pushPrefs(
       ['media.video_loopback_dev', ''],
       ['media.navigator.streams.fake', true]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     const test = new PeerConnectionTest(options);
     addRenegotiation(test.chain,
       [
         function PC_LOCAL_ADD_SECOND_STREAM(test) {
           test.setMediaConstraints([{video: true}, {video: true}],
                                    [{video: true}]);
--- a/dom/media/tests/mochitest/test_peerConnection_addSecondVideoStreamNoBundle.html
+++ b/dom/media/tests/mochitest/test_peerConnection_addSecondVideoStreamNoBundle.html
@@ -15,18 +15,17 @@
   runNetworkTest(async function (options = {}) {
     // Use fake video here since the native fake device on linux doesn't
     // change color as needed by checkVideoPlaying() below.
     await pushPrefs(
       ['media.video_loopback_dev', ''],
       ['media.navigator.streams.fake', true]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     options.bundle = false;
     const test = new PeerConnectionTest(options);
     addRenegotiation(test.chain,
       [
         function PC_LOCAL_ADD_SECOND_STREAM(test) {
           test.setMediaConstraints([{video: true}, {video: true}],
--- a/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d.html
+++ b/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d.html
@@ -11,18 +11,17 @@ createHTML({
   bug: "1032848",
   title: "Canvas(2D)::CaptureStream as video-only input to peerconnection",
   visible: true
 });
 
 runNetworkTest(async () => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
 
   var test = new PeerConnectionTest();
   var mediaElement;
   var h = new CaptureStreamTestHelper2D();
   var canvas = document.createElement('canvas');
   var stream;
   canvas.id = 'source_canvas';
--- a/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d_noSSRC.html
+++ b/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d_noSSRC.html
@@ -11,18 +11,17 @@ createHTML({
   title: "Canvas(2D)::CaptureStream as video-only input to peerconnection with no a=ssrc",
   visible: true
 });
 
 var test;
 runNetworkTest(async (options) => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
 
   options = options || { };
   options.ssrc = false;
   test = new PeerConnectionTest(options);
   var mediaElement;
   var h = new CaptureStreamTestHelper2D();
   var canvas = document.createElement('canvas');
--- a/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_webgl.html
+++ b/dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_webgl.html
@@ -22,18 +22,17 @@
 createHTML({
   bug: "1032848",
   title: "Canvas(WebGL)::CaptureStream as video-only input to peerconnection"
 });
 
 runNetworkTest(async () => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
 
   var test = new PeerConnectionTest();
   var vremote;
   var h = new CaptureStreamTestHelperWebGL();
   var canvas = document.createElement('canvas');
   canvas.id = 'source_canvas';
   canvas.width = canvas.height = 10;
--- a/dom/media/tests/mochitest/test_peerConnection_disabledVideoPreNegotiation.html
+++ b/dom/media/tests/mochitest/test_peerConnection_disabledVideoPreNegotiation.html
@@ -12,18 +12,17 @@
     title: "Sending an initially disabled video track should be playable remotely",
     visible: true,
   });
 
   var test;
   runNetworkTest(async (options) => {
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     test = new PeerConnectionTest(options);
     test.setMediaConstraints([{video: true}], []);
     test.chain.insertAfter("PC_LOCAL_GUM", function PC_LOCAL_DISABLE_VIDEO() {
       for (const {track} of test.pcLocal._pc.getSenders()) {
         if (track.kind == "video") {
           track.enabled = false;
--- a/dom/media/tests/mochitest/test_peerConnection_maxFsConstraint.html
+++ b/dom/media/tests/mochitest/test_peerConnection_maxFsConstraint.html
@@ -76,21 +76,19 @@
       .then(() => {
         stream.getTracks().forEach(track => track.stop());
         v1.srcObject = v2.srcObject = null;
       }).catch(generateErrorCallback());
   }
 
   runNetworkTest(async () => {
     await pushPrefs(['media.peerconnection.video.lock_scaling', true]);
-    await testScale("H264");
-    // H.264 is prefered on Android for there is HW codec. Disable that to test
-    // VP8.
-    if (navigator.appVersion.includes("Android")) {
-      await pushPrefs(["media.webrtc.hw.h264.enabled", false]);
+    await testScale("VP8");
+    if (!navigator.appVersion.includes("Android")) {
+      // No support for H.264 on Android in automation, see Bug 1355786
+      await testScale("H264");
     }
-    await testScale("VP8");
     networkTestFinished();
   });
 </script>
 </pre>
 </body>
 </html>
--- a/dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
+++ b/dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
@@ -15,17 +15,16 @@ createHTML({
 
 /**
  * Test to verify using multiple capture streams concurrently.
  */
 runNetworkTest(async () => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
     await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
-    await pushPrefs(["media.webrtc.hw.h264.enabled", false]);
   }
 
   var test = new PeerConnectionTest();
   var h = new CaptureStreamTestHelper2D(50, 50);
 
   var vremote1;
   var stream1;
   var canvas1 = h.createAndAppendElement('canvas', 'source_canvas1');
--- a/dom/media/tests/mochitest/test_peerConnection_recordReceiveTrack.html
+++ b/dom/media/tests/mochitest/test_peerConnection_recordReceiveTrack.html
@@ -63,18 +63,17 @@ async function testTrackAccessible(track
   } finally {
     URL.revokeObjectURL(data);
   }
 }
 
 runNetworkTest(async options => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
   const test = new PeerConnectionTest(options);
   test.setMediaConstraints([{video: true}], [{audio: true}]);
   test.setOfferOptions({offerToReceiveAudio: true});
   const freshVideoTrackIsAccessible = new Promise(
       r => test.pcRemote._pc.addEventListener("track", r, {once: true})
     ).then(({track}) => testTrackAccessible(track));
   const freshAudioTrackIsAccessible = new Promise(
--- a/dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrack.html
+++ b/dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrack.html
@@ -15,18 +15,17 @@
   runNetworkTest(async function (options) {
     // Use fake video here since the native fake device on linux doesn't
     // change color as needed by checkVideoPlaying() below.
     await pushPrefs(
       ['media.video_loopback_dev', ''],
       ['media.navigator.streams.fake', true]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     const test = new PeerConnectionTest(options);
     const helper = new VideoStreamHelper();
     var originalTrack;
     let haveMuteEvent = new Promise(() => {});
     let haveUnmuteEvent = new Promise(() => {});
     addRenegotiation(test.chain,
--- a/dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrackNoBundle.html
+++ b/dom/media/tests/mochitest/test_peerConnection_removeThenAddVideoTrackNoBundle.html
@@ -15,18 +15,17 @@
   runNetworkTest(async function (options) {
     // Use fake video here since the native fake device on linux doesn't
     // change color as needed by checkVideoPlaying() below.
     await pushPrefs(
       ['media.video_loopback_dev', ''],
       ['media.navigator.streams.fake', true]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     options = options || { };
     options.bundle = false;
     const test = new PeerConnectionTest(options);
     const helper = new VideoStreamHelper();
     var originalTrack;
     addRenegotiation(test.chain,
--- a/dom/media/tests/mochitest/test_peerConnection_removeVideoTrack.html
+++ b/dom/media/tests/mochitest/test_peerConnection_removeVideoTrack.html
@@ -10,18 +10,17 @@
   createHTML({
     bug: "1017888",
     title: "Renegotiation: remove video track"
   });
 
   runNetworkTest(async (options) => {
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     const test = new PeerConnectionTest(options);
     let receivedTrack, element;
     addRenegotiation(test.chain,
       [
         function PC_REMOTE_SETUP_HELPER(test) {
           is(test.pcRemote._pc.getReceivers().length, 1,
--- a/dom/media/tests/mochitest/test_peerConnection_renderAfterRenegotiation.html
+++ b/dom/media/tests/mochitest/test_peerConnection_renderAfterRenegotiation.html
@@ -34,17 +34,16 @@
       resolve();
     }
   });
 
   runNetworkTest(async () => {
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
       await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
-      await pushPrefs(["media.webrtc.hw.h264.enabled", false]);
     }
 
     v2 = createMediaElement('video', 'v2');
     is(v2.currentTime, 0, "v2.currentTime is zero at outset");
 
     const emitter = new VideoFrameEmitter(CaptureStreamTestHelper.prototype.blue,
                                           CaptureStreamTestHelper.prototype.green,
                                           10, 10);
--- a/dom/media/tests/mochitest/test_peerConnection_replaceVideoThenRenegotiate.html
+++ b/dom/media/tests/mochitest/test_peerConnection_replaceVideoThenRenegotiate.html
@@ -11,18 +11,17 @@
     bug: "1017888",
     title: "Renegotiation: replaceTrack followed by adding a second video stream"
   });
 
   runNetworkTest(async (options) => {
     await pushPrefs(['media.peerconnection.video.min_bitrate_estimate', 180*1000]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     const test = new PeerConnectionTest(options);
     test.setMediaConstraints([{video:true}], [{video:true}]);
     const helper = new VideoStreamHelper();
     const emitter1 = new VideoFrameEmitter(CaptureStreamTestHelper.prototype.red,
                                            CaptureStreamTestHelper.prototype.green);
     const emitter2 = new VideoFrameEmitter(CaptureStreamTestHelper.prototype.blue,
--- a/dom/media/tests/mochitest/test_peerConnection_setParameters_scaleResolutionDownBy.html
+++ b/dom/media/tests/mochitest/test_peerConnection_setParameters_scaleResolutionDownBy.html
@@ -29,18 +29,17 @@ async function checkScaleDownBy(scale) {
   is(remoteElem.videoHeight, expectedWidth / originalAspectRatio,
     `Height should have scaled down by ${scale}`);
 }
 
 runNetworkTest(async function (options) {
   await pushPrefs(['media.peerconnection.video.lock_scaling', true]);
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
 
   let test = new PeerConnectionTest(options);
   test.setMediaConstraints([{video: true}], []);
   test.chain.append([
     function CHECK_PRECONDITIONS() {
       is(test.pcLocal._pc.getSenders().length, 1,
           "Should have 1 local sender");
--- a/dom/media/tests/mochitest/test_peerConnection_stats.html
+++ b/dom/media/tests/mochitest/test_peerConnection_stats.html
@@ -803,23 +803,17 @@ var PC_LOCAL_TEST_LOCAL_STATS = test => 
 
 var PC_REMOTE_TEST_REMOTE_STATS = test => {
   return test.pcRemote.waitForSyncedRtcp().then(stats => {
     checkExpectedFields(stats);
     pedanticChecks(stats);
   });
 }
 
-runNetworkTest(async function (options) {
-  // We don't know how to get QP value when using Android system codecs.
-  if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
-  }
-
+runNetworkTest(function (options) {
   const test = new PeerConnectionTest(options);
 
   test.chain.insertAfter("PC_LOCAL_WAIT_FOR_MEDIA_FLOW",
     [PC_LOCAL_TEST_LOCAL_STATS]);
 
   test.chain.insertAfter("PC_REMOTE_WAIT_FOR_MEDIA_FLOW",
     [PC_REMOTE_TEST_REMOTE_STATS]);
 
--- a/dom/media/tests/mochitest/test_peerConnection_trackDisabling_clones.html
+++ b/dom/media/tests/mochitest/test_peerConnection_trackDisabling_clones.html
@@ -21,18 +21,17 @@ runNetworkTest(async () => {
     ["media.getusermedia.microphone.stop_on_disable.enabled", true],
     ["media.getusermedia.microphone.stop_on_disable.delay_ms", 0],
     // Always use fake tracks since we depend on audio to have a large 1000Hz
     // component.
     ['media.audio_loopback_dev', ''],
     ['media.navigator.streams.fake', true]);
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
   var originalStream;
   var localVideoOriginal;
 
   test.setMediaConstraints([{audio: true, video: true}], []);
   test.chain.replace("PC_LOCAL_GUM", [
     function PC_LOCAL_GUM_CLONE() {
--- a/dom/media/tests/mochitest/test_peerConnection_verifyVideoAfterRenegotiation.html
+++ b/dom/media/tests/mochitest/test_peerConnection_verifyVideoAfterRenegotiation.html
@@ -10,18 +10,17 @@
   createHTML({
     bug: "1166832",
     title: "Renegotiation: verify video after renegotiation"
   });
 
 runNetworkTest(async () => {
   // [TODO] re-enable HW decoder after bug 1526207 is fixed.
   if (navigator.userAgent.includes("Android")) {
-    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                    ["media.webrtc.hw.h264.enabled", false]);
+    await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
   }
 
   var test = new PeerConnectionTest();
 
   var h1 = new CaptureStreamTestHelper2D(50, 50);
   var canvas1 = h1.createAndAppendElement('canvas', 'source_canvas1');
   var stream1;
   var vremote1;
--- a/dom/media/tests/mochitest/test_peerConnection_videoRenegotiationInactiveAnswer.html
+++ b/dom/media/tests/mochitest/test_peerConnection_videoRenegotiationInactiveAnswer.html
@@ -12,18 +12,17 @@
     bug: "1213773",
     title: "Renegotiation: answerer uses a=inactive for video"
   });
 
   var test;
   runNetworkTest(async (options) => {
     // [TODO] re-enable HW decoder after bug 1526207 is fixed.
     if (navigator.userAgent.includes("Android")) {
-      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false],
-                      ["media.webrtc.hw.h264.enabled", false]);
+      await pushPrefs(["media.navigator.mediadatadecoder_vpx_enabled", false]);
     }
 
     const emitter = new VideoFrameEmitter();
     const helper = new VideoStreamHelper();
 
     test = new PeerConnectionTest(options);
 
     test.chain.replace("PC_LOCAL_GUM", [
--- a/modules/libpref/init/StaticPrefList.yaml
+++ b/modules/libpref/init/StaticPrefList.yaml
@@ -6400,39 +6400,31 @@
 
 - name: media.hardwaremediakeys.enabled
   type: bool
   value: false
   mirror: always
 
 - name: media.webrtc.platformencoder
   type: bool
-#if defined(MOZ_WIDGET_ANDROID)
-  value: true
-#else
-  value: false
-#endif
+  value: false
   mirror: always
 
 - name: media.block-autoplay-until-in-foreground
   type: bool
 #if !defined(MOZ_WIDGET_ANDROID)
   value: true
 #else
   value: false
 #endif
   mirror: always
 
 - name: media.webrtc.hw.h264.enabled
   type: bool
-#if defined(MOZ_WIDGET_ANDROID)
-  value: true
-#else
-  value: false
-#endif
+  value: false
   mirror: always
 
 #---------------------------------------------------------------------------
 # Prefs starting with "mousewheel."
 #---------------------------------------------------------------------------
 
 # This affects how line scrolls from wheel events will be accelerated.
 # Factor to be multiplied for constant acceleration.