Merge pull request #16605 from Snuffleupagus/rm-enableFloatingToolbar-pref

[GeckoView] Remove the `enableFloatingToolbar` preference
This commit is contained in:
Jonas Jenwald 2023-06-26 15:56:14 +02:00 committed by GitHub
commit d357906c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 14 deletions

View File

@ -597,15 +597,13 @@ const PDFViewerApplication = {
? window.isGECKOVIEW ? window.isGECKOVIEW
: PDFJSDev.test("GECKOVIEW") : PDFJSDev.test("GECKOVIEW")
) { ) {
if (AppOptions.get("enableFloatingToolbar")) { this.toolbar = new Toolbar(
this.toolbar = new Toolbar( appConfig.toolbar,
appConfig.toolbar, eventBus,
eventBus, l10n,
l10n, await this._nimbusDataPromise,
await this._nimbusDataPromise, externalServices
externalServices );
);
}
} else { } else {
this.toolbar = new Toolbar(appConfig.toolbar, eventBus, l10n); this.toolbar = new Toolbar(appConfig.toolbar, eventBus, l10n);
} }

View File

@ -88,11 +88,6 @@ const defaultOptions = {
value: false, value: false,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE, kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
}, },
enableFloatingToolbar: {
/** @type {boolean} */
value: typeof PDFJSDev === "undefined",
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enablePermissions: { enablePermissions: {
/** @type {boolean} */ /** @type {boolean} */
value: false, value: false,