Bug 1282038 - Follow-up: Ensure unprefixed fullscreen API is enabled. r=me, a=lizzard
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Thu, 30 Jun 2016 19:25:48 +0900
changeset 339856 7051fecb8b5138f526492e87131ab7e0f40db0f1
parent 339855 c0a5d404e9872311da2d213ee9ae49b9e4d74971
child 339857 a9e572ac1d5e4df9aebf5c9860bb415b8dc0a60d
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, lizzard
bugs1282038
milestone49.0a2
Bug 1282038 - Follow-up: Ensure unprefixed fullscreen API is enabled. r=me, a=lizzard
dom/base/test/test_youtube_flash_embed.html
--- a/dom/base/test/test_youtube_flash_embed.html
+++ b/dom/base/test/test_youtube_flash_embed.html
@@ -15,18 +15,22 @@
        let msg = JSON.parse(e.data);
        if (msg.fn == "finish") {
          SimpleTest.finish();
          return;
        }
        self[msg.fn].apply(null, msg.args);
      }
      function onLoad() {
-       // The test file must be loaded into youtube.com domain
-       // because it needs unprivileged access to fullscreenEnabled.
-       ifr.src = "https://mochitest.youtube.com" + path;
+       SpecialPowers.pushPrefEnv({
+         "set": [["full-screen-api.unprefix.enabled", true]]
+       }, function() {
+         // The test file must be loaded into youtube.com domain
+         // because it needs unprivileged access to fullscreenEnabled.
+         ifr.src = "https://mochitest.youtube.com" + path;
+       });
      }
     </script>
   </head>
   <body onload="onLoad()">
     <iframe id="ifr" allowfullscreen></iframe>
   </body>
 </html>