Skip to content

Commit da9f912

Browse files
2620: disable pdfjs scripting, v88 final
1 parent 9930cfb commit da9f912

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******
22
* name: arkenfox user.js
3-
* date: 06 April 2021
4-
* version 88-alpha
3+
* date: 23 April 2021
4+
* version 88
55
* url: https://github.com/arkenfox/user.js
66
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
77
@@ -1163,17 +1163,18 @@ user_pref("webchannel.allowObject.urlWhitelist", "");
11631163
* [3] CVE-2017-5383: https://www.mozilla.org/security/advisories/mfsa2017-02/
11641164
* [4] https://www.xudongz.com/blog/2017/idn-phishing/ ***/
11651165
user_pref("network.IDN_show_punycode", true);
1166-
/* 2620: enforce Firefox's built-in PDF reader [SETUP-CHROME]
1166+
/* 2620: enforce PDFJS, disable PDFJS scripting [SETUP-CHROME]
11671167
* This setting controls if the option "Display in Firefox" is available in the setting below
11681168
* and by effect controls whether PDFs are handled in-browser or externally ("Ask" or "Open With")
11691169
* PROS: pdfjs is lightweight, open source, and as secure/vetted as any pdf reader out there (more than most)
1170-
* Exploits are rare (1 serious case in 4 yrs), treated seriously and patched quickly.
1170+
* Exploits are rare (one serious case in seven years), treated seriously and patched quickly.
11711171
* It doesn't break "state separation" of browser content (by not sharing with OS, independent apps).
11721172
* It maintains disk avoidance and application data isolation. It's convenient. You can still save to disk.
11731173
* CONS: You may prefer a different pdf reader for security reasons
11741174
* CAVEAT: JS can still force a pdf to open in-browser by bundling its own code (rare)
11751175
* [SETTING] General>Applications>Portable Document Format (PDF) ***/
11761176
user_pref("pdfjs.disabled", false); // [DEFAULT: false]
1177+
user_pref("pdfjs.enableScripting", false); // [FF86+]
11771178
/* 2621: disable links launching Windows Store on Windows 8/8.1/10 [WINDOWS] ***/
11781179
user_pref("network.protocol-handler.external.ms-windows-store", false);
11791180
/* 2622: enforce no system colors; they can be fingerprinted

0 commit comments

Comments
 (0)