Skip to content

Commit

Permalink
Backed out changeset baf5dfffbc34 (bug 1246128) for an ESLint failure…
Browse files Browse the repository at this point in the history
… a=backout
  • Loading branch information
KWierso committed Feb 9, 2016
1 parent a4e4f74 commit 779a2cd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions toolkit/content/TopLevelVideoDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

"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.
Expand All @@ -18,7 +15,7 @@ document.addEventListener("keypress", ev => {
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.
Expand Down

0 comments on commit 779a2cd

Please sign in to comment.