Backed out changeset baf5dfffbc34 (bug 1246128) for an ESLint failure a=backout
authorWes Kocher <wkocher@mozilla.com>
Mon, 08 Feb 2016 16:47:51 -0800
changeset 319811 49945e5fe79e6cf2b083f56fd49d917ca886db0b
parent 319810 9e8419aa24ae29a79bd35a712bbc10c17ce321dd
child 319812 d1a54ae63da7ebc4bc1eeb5b613e8ec29bfcb80a
child 319898 1e6bb5a9d9e2eeb08a007d9912f85a007bfdecdd
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1246128
milestone47.0a1
backs outbaf5dfffbc347cef3d7152f5b5d7ad7408a3f69d
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 changeset baf5dfffbc34 (bug 1246128) for an ESLint failure a=backout
toolkit/content/TopLevelVideoDocument.js
--- a/toolkit/content/TopLevelVideoDocument.js
+++ b/toolkit/content/TopLevelVideoDocument.js
@@ -1,29 +1,26 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
+// <video> is used for top-level audio documents as well
 let videoElement = document.getElementsByTagName("video")[0];
 
-// ignore standalone audio files
-if (videoElement.videoWidth == 0 || videoElement.videoHeight == 0)
-  return;
-
 // 1. Handle fullscreen mode;
 // 2. Send keystrokes to the video element if the body element is focused,
 //    to be received by the event listener in videocontrols.xml.
 document.addEventListener("keypress", ev => {
   if (ev.synthetic) // prevent recursion
     return;
 
   // Maximize the video when pressing F11,
-  // because this is the standalone video document.
+  // because this is the standanlone video document.
   if (ev.key == "F11") {
     // If we're in browser fullscreen mode, it means the user pressed F11
     // while browser chrome or another tab had focus.
     // Don't break leaving that mode, so do nothing here.
     if (window.fullScreen) {
       return;
     }