Bug 1779389 - Enable editing in the PDF viewer on EARLY_BETA_OR_EARLIER r=pdfjs-reviewers,marco
authorCalixte <cdenizet@mozilla.com>
Tue, 19 Jul 2022 10:03:52 +0000
changeset 624350 6a646ddb36e32cce33bc0aa9946b6d8de33da731
parent 624349 dc6dc0fd83e96878b646301f027b13d6f72f326a
child 624351 31765fe421555ad5b00915ed091587e880cf475a
push id40003
push userctuns@mozilla.com
push dateTue, 19 Jul 2022 21:35:33 +0000
treeherdermozilla-central@5537d628706e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspdfjs-reviewers, marco
bugs1779389
milestone104.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1779389 - Enable editing in the PDF viewer on EARLY_BETA_OR_EARLIER r=pdfjs-reviewers,marco Differential Revision: https://phabricator.services.mozilla.com/D152157
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -214,16 +214,23 @@ pref("browser.chrome.toolbar_tips",     
 // if 0, no images are used for tab icons for image documents.
 pref("browser.chrome.image_icons.max_size", 1024);
 
 pref("browser.triple_click_selects_paragraph", true);
 
 // Enable fillable forms in the PDF viewer.
 pref("pdfjs.annotationMode", 2);
 
+// Enable editing in the PDF viewer.
+#ifdef EARLY_BETA_OR_EARLIER
+  pref("pdfjs.annotationEditorMode", 0);
+#else
+  pref("pdfjs.annotationEditorMode", -1);
+#endif
+
 // Enable JavaScript support in the PDF viewer.
 pref("pdfjs.enableScripting", true);
 
 // Enable XFA form support in the PDF viewer.
 pref("pdfjs.enableXfa", true);
 
 // Disable support for MathML
 pref("mathml.disabled",    false);