--- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -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 = { // the first browser window has finished initializing _onFirstWindowLoaded: function BG__onFirstWindowLoaded(aWindow) { - // 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. - Services.ppmm.loadProcessScript("resource://pdf.js/pdfjschildbootstrap.js", true); - if (AppConstants.platform == "win") { // For Windows 7, initialize the jump list module. const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1";