[GeckoView] Remove the enableFloatingToolbar preference

Note that we'll now display the toolbar unconditionally in GeckoView.
This commit is contained in:
Jonas Jenwald 2023-06-26 15:17:03 +02:00
parent 21383fb2d1
commit 80b4708fa3
2 changed files with 7 additions and 14 deletions

View File

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

View File

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