firefox-patches/disable-pdfjs.patch

32 lines
1.7 KiB
Diff
Raw Permalink Normal View History

2017-11-24 23:49:08 +01:00
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
2018-01-07 17:12:58 +01:00
@@ -46,7 +46,6 @@ XPCOMUtils.defineLazyServiceGetter(this, "AlertsService", "@mozilla.org/alerts-s
["NewTabUtils", "resource://gre/modules/NewTabUtils.jsm"],
["OS", "resource://gre/modules/osfile.jsm"],
["PageThumbs", "resource://gre/modules/PageThumbs.jsm"],
- ["PdfJs", "resource://pdf.js/PdfJs.jsm"],
["PermissionUI", "resource:///modules/PermissionUI.jsm"],
["PlacesBackups", "resource://gre/modules/PlacesBackups.jsm"],
["PlacesUtils", "resource://gre/modules/PlacesUtils.jsm"],
@@ -930,20 +929,6 @@ BrowserGlue.prototype = {
2017-11-24 23:49:08 +01:00
// the first browser window has finished initializing
_onFirstWindowLoaded: function BG__onFirstWindowLoaded(aWindow) {
2018-01-07 17:12:58 +01:00
- // Initialize PdfJs when running in-process and remote. This only
- // happens once since PdfJs registers global hooks. If the PdfJs
- // extension is installed the init method below will be overridden
- // leaving initialization to the extension.
- // parent only: configure default prefs, set up pref observers, register
- // pdf content handler, and initializes parent side message manager
- // shim for privileged api access.
- PdfJs.init(true);
- // child only: similar to the call above for parent - register content
- // handler and init message manager child shim for privileged api access.
- // With older versions of the extension installed, this load will fail
- // passively.
2017-11-24 23:49:08 +01:00
- Services.ppmm.loadProcessScript("resource://pdf.js/pdfjschildbootstrap.js", true);
-
2018-01-07 17:12:58 +01:00
if (AppConstants.platform == "win") {
// For Windows 7, initialize the jump list module.
const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1";