feat: add WaterfoxGlue to handle Waterfox specific code
(cherry picked from commit 64e891c226dc7a28b490779c6e75101349ff3f7b)
This commit is contained in:
@@ -80,6 +80,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
"resource:///modules/WebProtocolHandlerRegistrar.sys.mjs",
|
||||
WindowsRegistry: "resource://gre/modules/WindowsRegistry.sys.mjs",
|
||||
setTimeout: "resource://gre/modules/Timer.sys.mjs",
|
||||
WaterfoxGlue: "resource:///modules/WaterfoxGlue.jsm",
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetters(lazy, {
|
||||
@@ -429,6 +430,8 @@ BrowserGlue.prototype = {
|
||||
_beforeUIStartup: function BG__beforeUIStartup() {
|
||||
lazy.SessionStartup.init();
|
||||
|
||||
WaterfoxGlue.init();
|
||||
|
||||
// check if we're in safe mode
|
||||
if (Services.appinfo.inSafeMode) {
|
||||
Services.ww.openWindow(
|
||||
|
||||
11
waterfox/browser/components/WaterfoxGlue.jsm
Normal file
11
waterfox/browser/components/WaterfoxGlue.jsm
Normal file
@@ -0,0 +1,11 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
const EXPORTED_SYMBOLS = ["WaterfoxGlue"];
|
||||
|
||||
const WaterfoxGlue = {
|
||||
init() {},
|
||||
};
|
||||
9
waterfox/browser/components/moz.build
Normal file
9
waterfox/browser/components/moz.build
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
"WaterfoxGlue.jsm",
|
||||
]
|
||||
@@ -5,6 +5,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIRS += [
|
||||
"components",
|
||||
"extensions/common",
|
||||
"themes",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user