diff --git a/web/app.js b/web/app.js index 6543eba70..2fafc769d 100644 --- a/web/app.js +++ b/web/app.js @@ -677,9 +677,7 @@ const PDFViewerApplication = { return shadow( this, "supportsFullscreen", - document.fullscreenEnabled || - document.mozFullScreenEnabled || - document.webkitFullscreenEnabled + document.fullscreenEnabled || document.webkitFullscreenEnabled ); }, diff --git a/web/pdf_presentation_mode.js b/web/pdf_presentation_mode.js index fc393694d..937ee50f6 100644 --- a/web/pdf_presentation_mode.js +++ b/web/pdf_presentation_mode.js @@ -79,8 +79,6 @@ class PDFPresentationMode { } else { if (this.container.requestFullscreen) { this.container.requestFullscreen(); - } else if (this.container.mozRequestFullScreen) { - this.container.mozRequestFullScreen(); } else if (this.container.webkitRequestFullscreen) { this.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); } else { @@ -145,11 +143,7 @@ class PDFPresentationMode { if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) { return !!document.fullscreenElement; } - return !!( - document.fullscreenElement || - document.mozFullScreen || - document.webkitIsFullScreen - ); + return !!(document.fullscreenElement || document.webkitIsFullScreen); } /** @@ -450,7 +444,6 @@ class PDFPresentationMode { window.addEventListener("fullscreenchange", this.fullscreenChangeBind); if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { - window.addEventListener("mozfullscreenchange", this.fullscreenChangeBind); window.addEventListener( "webkitfullscreenchange", this.fullscreenChangeBind @@ -464,10 +457,6 @@ class PDFPresentationMode { _removeFullscreenChangeListeners() { window.removeEventListener("fullscreenchange", this.fullscreenChangeBind); if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { - window.removeEventListener( - "mozfullscreenchange", - this.fullscreenChangeBind - ); window.removeEventListener( "webkitfullscreenchange", this.fullscreenChangeBind