feat: add WaterfoxGlue to handle Waterfox specific code

(cherry picked from commit 64e891c226dc7a28b490779c6e75101349ff3f7b)
This commit is contained in:
Alex Kontos
2025-05-16 08:44:25 +01:00
parent 127502f58c
commit 23b36cc3df
4 changed files with 24 additions and 0 deletions

View File

@@ -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(

View 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() {},
};

View 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",
]

View File

@@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
DIRS += [
"components",
"extensions/common",
"themes",
]