Bug 1399787 - Part 16. Add a preference in all.js to enable/disable print a document by pdf encoder and pdfium. draft
authorcku <cku@mozilla.com>
Tue, 21 Nov 2017 14:53:48 +0800
changeset 701103 45660d44a102a4264dd654f2cabb18de645f8be2
parent 701102 453f9ee4fdb69980c50b49728a9e9b2553eb3b23
child 741090 fc84c72bbcdeae7f9fad25e90b51cd9d4c3ba5e5
push id90072
push usercku@mozilla.com
push dateTue, 21 Nov 2017 08:05:32 +0000
bugs1399787
milestone59.0a1
Bug 1399787 - Part 16. Add a preference in all.js to enable/disable print a document by pdf encoder and pdfium. MozReview-Commit-ID: CJ1LszuC1gB
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -292,16 +292,21 @@ pref("browser.chrome.toolbar_tips",     
 // 0 = Pictures Only, 1 = Text Only, 2 = Pictures and Text
 pref("browser.chrome.toolbar_style",        2);
 // max image size for which it is placed in the tab icon for tabbrowser.
 // 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);
 
+#ifdef MOZ_ENABLE_SKIA_PDF
+// Print a document by using pdf encoder.
+pref("print.print_via_pdf_encoder", false);
+#endif
+
 // Print/Preview Shrink-To-Fit won't shrink below 20% for text-ish documents.
 pref("print.shrink-to-fit.scale-limit-percent", 20);
 
 // Whether we should display simplify page checkbox on print preview UI
 pref("print.use_simplify_page", false);
 
 // Disable support for MathML
 pref("mathml.disabled",    false);