Bug 1334960 - Enable unprefixed fullscreen API for more fullscreen plugin crash tests to avoid perma-oranging on beta / release. r=philor, a=test-only
authorMike Conley <mconley@mozilla.com>
Tue, 31 Jan 2017 09:55:57 -0500
changeset 378190 45d7372ceb6695e42915f11a4d30fce43cb59841
parent 378189 f6e3e8cec8949bdc33407eb9a6ab2ab37091e23e
child 378191 d519c9327faa8eeb9d03d8f79f98cd4c8e98b98b
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 more fullscreen plugin crash tests to avoid perma-oranging on beta / release. r=philor, a=test-only MozReview-Commit-ID: Biw4I5uitwI
dom/plugins/test/mochitest/test_bug1028200-3.html
dom/plugins/test/mochitest/test_bug1028200-4.html
dom/plugins/test/mochitest/test_bug1028200-5.html
dom/plugins/test/mochitest/test_bug1028200-6.html
dom/plugins/test/mochitest/test_bug1028200-7.html
--- a/dom/plugins/test/mochitest/test_bug1028200-3.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-3.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('iframe1');
         let plugin = document.getElementById('iframe1')
              .contentDocument.getElementById('iframe2')
              .contentDocument.getElementById('plugin1');
 
--- a/dom/plugins/test/mochitest/test_bug1028200-4.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-4.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('iframe1');
         let plugin = document.getElementById('iframe1')
              .contentDocument.getElementById('iframe2')
              .contentDocument.getElementById('plugin1');
 
--- a/dom/plugins/test/mochitest/test_bug1028200-5.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-5.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('plugin1');
 
         let fullScreenChange = promiseFullScreenChange();
         fullScreenElement.mozRequestFullScreen();
--- a/dom/plugins/test/mochitest/test_bug1028200-6.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-6.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('iframe1');
         let plugin = document.getElementById('plugin1');
 
         let fullScreenChange = promiseFullScreenChange();
         fullScreenElement.mozRequestFullScreen();
--- a/dom/plugins/test/mochitest/test_bug1028200-7.html
+++ b/dom/plugins/test/mochitest/test_bug1028200-7.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('iframeA')
         let plugin = document.getElementById('iframe1')
           .contentDocument.getElementById('iframe2')
           .contentDocument.getElementById('plugin1');