Skip to content

Commit

Permalink
Merge pull request mozilla#9815 from Snuffleupagus/rm-disableFullscre…
Browse files Browse the repository at this point in the history
…en-IE-embedded

Remove the `disableFullscreen` hack for embedded IE 11 (issue 9585)
  • Loading branch information
timvandermeij authored Jun 14, 2018
2 parents 7d16c43 + 977547e commit 99bb2fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,6 @@ let PDFViewerApplication = {
support = false;
}
}
if (support && AppOptions.get('disableFullscreen') === true) {
support = false;
}

return shadow(this, 'supportsFullscreen', support);
},

Expand Down
5 changes: 0 additions & 5 deletions web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ const defaultOptions = {
value: '',
kind: OptionKind.VIEWER,
},
disableFullscreen: {
/** @type {boolean} */
value: viewerCompatibilityParams.disableFullscreen || false,
kind: OptionKind.VIEWER,
},
disableHistory: {
/** @type {boolean} */
value: false,
Expand Down
9 changes: 0 additions & 9 deletions web/viewer_compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,8 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
const userAgent =
(typeof navigator !== 'undefined' && navigator.userAgent) || '';
const isAndroid = /Android/.test(userAgent);
const isIE = /Trident/.test(userAgent);
const isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent);

// Disable fullscreen support for certain problematic configurations.
// Support: IE11+ (when embedded).
(function checkFullscreenSupport() {
if (isIE && window.parent !== window) {
compatibilityParams.disableFullscreen = true;
}
})();

// Limit canvas size to 5 mega-pixels on mobile.
// Support: Android, iOS
(function checkCanvasSizeLimitation() {
Expand Down

0 comments on commit 99bb2fc

Please sign in to comment.