From 80b4708fa32721dd3630973a11fe21f474d63e3e Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 26 Jun 2023 15:17:03 +0200 Subject: [PATCH] [GeckoView] Remove the `enableFloatingToolbar` preference Note that we'll now display the toolbar unconditionally in GeckoView. --- web/app.js | 16 +++++++--------- web/app_options.js | 5 ----- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/web/app.js b/web/app.js index 8a5bbffbc..af7f06870 100644 --- a/web/app.js +++ b/web/app.js @@ -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); } diff --git a/web/app_options.js b/web/app_options.js index f3350f462..a5755fa91 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -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,