Bug 1334960 - Enable unprefixed fullscreen API for fullscreen plugin crash tests to avoid perma-oranging on beta / release. r=philor, a=test-only
authorMike Conley <mconley@mozilla.com>
Mon, 30 Jan 2017 11:31:08 -0500
changeset 378189 f6e3e8cec8949bdc33407eb9a6ab2ab37091e23e
parent 378188 5187252151ea06da2692a199f556962c10869dae
child 378190 45d7372ceb6695e42915f11a4d30fce43cb59841
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilor, test-only
bugs1334960
milestone53.0a2
Bug 1334960 - Enable unprefixed fullscreen API for fullscreen plugin crash tests to avoid perma-oranging on beta / release. r=philor, a=test-only MozReview-Commit-ID: 5nlBRgztefZ
dom/plugins/test/mochitest/test_bug1028200-1.html
dom/plugins/test/mochitest/test_bug1028200-2.html
--- a/dom/plugins/test/mochitest/test_bug1028200-1.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-1.html
@@ -40,18 +40,22 @@
      * screen element - and therefore exit out of the fullscreen element.
      */
     let load = function testCrashChildPlugin_expectFullScreenElementToBeCancelled() {
       add_task(function* () {
         /* Needed to be able to programatically (without user interaction) enter
          * fullscreen  (has been deemed a security issue otherwise and therefore
          * disabled by default)
          */
-        yield SpecialPowers.pushPrefEnv(
-            { "set": [ ["full-screen-api.allow-trusted-requests-only", false] ] });
+        yield SpecialPowers.pushPrefEnv({
+          "set": [
+            ["full-screen-api.allow-trusted-requests-only", false],
+            ["full-screen-api.unprefix.enabled", true],
+          ],
+        });
       });
 
       add_task(function* () {
         let fullScreenElement = document.getElementById('div1');
         let plugin = document.getElementById('iframe1')
           .contentDocument.getElementById('iframe2')
           .contentDocument.getElementById('plugin1');
 
--- a/dom/plugins/test/mochitest/test_bug1028200-2.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-2.html
@@ -40,18 +40,22 @@
      * screen element - and therefore remain in the fullscreen element.
      */
     let load = function testCrashChildPlugin_expectFullScreenElementToRemain() {
       add_task(function* () {
         /* Needed to be able to programatically (without user interaction) enter
          * fullscreen  (has been deemed a security issue otherwise and therefore
          * disabled by default)
          */
-        yield SpecialPowers.pushPrefEnv(
-            { "set": [ ["full-screen-api.allow-trusted-requests-only", false] ] });
+        yield SpecialPowers.pushPrefEnv({
+          "set": [
+            ["full-screen-api.allow-trusted-requests-only", false],
+            ["full-screen-api.unprefix.enabled", true],
+          ],
+        });
       });
 
       add_task(function* () {
         let fullScreenElement = document.getElementById('div1');
         let plugin = document.getElementById('plugin1');
 
         let fullScreenChange = promiseFullScreenChange();
         fullScreenElement.mozRequestFullScreen();