Skip to content

Commit

Permalink
Remove the enableHighlightEditor preference
Browse files Browse the repository at this point in the history
This was enabled by default in Firefox 126, see [bug 1867513](https://bugzilla.mozilla.org/show_bug.cgi?id=1867513), so hopefully we should be able to remove the option/preference now.
  • Loading branch information
Snuffleupagus committed Aug 10, 2024
1 parent b6b99a7 commit bf4808b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions extensions/chromium/preferences_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@
"description": "Whether to allow execution of active content (JavaScript) by PDF files.",
"default": false
},
"enableHighlightEditor": {
"type": "boolean",
"default": false
},
"enableHighlightFloatingButton": {
"type": "boolean",
"default": false
Expand Down
5 changes: 0 additions & 5 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,6 @@ const PDFViewerApplication = {
typeof AbortSignal.any === "function") &&
annotationEditorMode !== AnnotationEditorType.DISABLE
) {
const editorHighlightButton = appConfig.toolbar?.editorHighlightButton;
if (editorHighlightButton && AppOptions.get("enableHighlightEditor")) {
editorHighlightButton.hidden = false;
}

this.annotationEditorParams = new AnnotationEditorParams(
appConfig.annotationEditorParams,
eventBus
Expand Down
8 changes: 0 additions & 8 deletions web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,6 @@ const defaultOptions = {
value: true,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE + OptionKind.EVENT_DISPATCH,
},
enableHighlightEditor: {
// We'll probably want to make some experiments before enabling this
// in Firefox release, but it has to be temporary.
// TODO: remove it when unnecessary.
/** @type {boolean} */
value: typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING"),
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableHighlightFloatingButton: {
// We'll probably want to make some experiments before enabling this
// in Firefox release, but it has to be temporary.
Expand Down

0 comments on commit bf4808b

Please sign in to comment.