Merge pull request #9815 from Snuffleupagus/rm-disableFullscreen-IE-embedded
Remove the `disableFullscreen` hack for embedded IE 11 (issue 9585)
This commit is contained in:
commit
73843865b8
@ -553,10 +553,6 @@ let PDFViewerApplication = {
|
||||
support = false;
|
||||
}
|
||||
}
|
||||
if (support && AppOptions.get('disableFullscreen') === true) {
|
||||
support = false;
|
||||
}
|
||||
|
||||
return shadow(this, 'supportsFullscreen', support);
|
||||
},
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user