[28189] in Source-Commits
firefox-extension commit: Disable pdf.js and prompt the user for action
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon May 5 15:33:07 2014
Date: Mon, 5 May 2014 15:33:00 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201405051933.s45JX0AD013574@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/firefox-extension/commit/cfd08143e4b264e450085552718c66dc0bee7571
commit cfd08143e4b264e450085552718c66dc0bee7571
Author: Jonathan Reed <jdreed@mit.edu>
Date: Mon May 5 11:51:11 2014 -0400
Disable pdf.js and prompt the user for action
With Firefox 29, pdf.js is no longer functional. This
disables it, and disables full-page PDF plugins, so the
user is asked what to do with a PDF. (Trac: #1466)
A likely side-effect of this is that people who have configured the
Adobe plugin (or another PDF plugin) will now get prompted with the
dialog box, but we believe that to be preferable to printing not
working at all.
defaults/preferences/athena.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/defaults/preferences/athena.js b/defaults/preferences/athena.js
index 0ac41bf..7d9722a 100644
--- a/defaults/preferences/athena.js
+++ b/defaults/preferences/athena.js
@@ -20,3 +20,10 @@ pref("network.negotiate-auth.trusted-uris", "https://idp.mit.edu");
// Do not delete files downloaded for helper applications upon exit,
// to give users a chance to retrieve them if desired.
pref("browser.helperApps.deleteTempFileOnExit", false);
+
+// Disable pdf.js, since it is incapable of generating PostScript
+pref("pdfjs.disabled", true);
+// Force Firefox to ask the user what to do with a PDF
+// (without this setting, and with pdfjs disabled as above, the PDF
+// will be automatically added to the "Downloads" window/popup
+pref("plugin.disable_full_page_plugin_for_types", "application/pdf");