Skip to content

Commit

Permalink
120
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Oct 26, 2023
1 parent 6fb375e commit 0e894a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async function startup(aData, aReason) {
Services.scriptloader.loadSubScript(defaultsURI, this);

// Get the utils.jsm module into our sandbox
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm", "chrome://"+objPathString+"-resource/content/modules/utils/PluralForm.jsm");
ChromeUtils.defineModuleGetter(this, "PluralForm", "chrome://"+objPathString+"-resource/content/modules/utils/PluralForm.jsm");
Services.scriptloader.loadSubScript("chrome://"+objPathString+"-resource/content/modules/utils/Modules.jsm", this);
Services.scriptloader.loadSubScript("chrome://"+objPathString+"-resource/content/modules/utils/sandboxUtilsPreload.jsm", this);
Modules.load("utils/sandboxUtils");
Expand Down
2 changes: 1 addition & 1 deletion resource/modules/compatibilityFix/SessionManager.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// VERSION 1.1.0

XPCOMUtils.defineLazyModuleGetter(this, "gSessionManager", "chrome://sessionmanager/content/modules/session_manager.jsm");
ChromeUtils.defineModuleGetter(this, "gSessionManager", "chrome://sessionmanager/content/modules/session_manager.jsm");

this.SessionManager = {
id: '{1280606b-2510-4fe0-97ef-9b5a22eafe30}',
Expand Down
6 changes: 4 additions & 2 deletions resource/modules/content/utils/ChildProcess.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@

var {classes: Cc, interfaces: Ci, utils: Cu, manager: Cm} = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "console", "resource://gre/modules/Console.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm", "chrome://"+objPathString+"-resource/content/modules/utils/PluralForm.jsm");
XPCOMUtils.defineLazyModuleGetters(this, {
console: "resource://gre/modules/Console.jsm",
PluralForm: "chrome://" + objPathString + "-resource/content/modules/utils/PluralForm.jsm",
});
XPCOMUtils.defineLazyServiceGetter(Services, "navigator", "@mozilla.org/network/protocol;1?name=http", "nsIHttpProtocolHandler");

// See the definition of these in bootstrap.js
Expand Down

0 comments on commit 0e894a9

Please sign in to comment.