mirror of
https://github.com/daijro/camoufox.git
synced 2026-09-06 16:00:34 +00:00
* fix: migrate Services import to lazy loading pattern and disable dark theme to prevent XPIProvider crash - Changed Services from ChromeUtils.defineLazyGetter to ChromeUtils.defineESModuleGetters with lazy object - Updated all Services references to lazy.Services throughout Juggler.js - Added re-copying of additions and settings after git reset in patch.py - Removed juggler components.conf copy logic from patch.py (now handled by copy-additions.sh) - Disabled dark theme preference in camoufox.cfg to * fix: revert Services import to direct ESM import and re-enable dark theme preference - Changed Services from lazy loading pattern back to direct ChromeUtils.importESModule() - Removed lazy object wrapper and ChromeUtils.defineESModuleGetters usage - Updated all lazy.Services references to Services throughout Juggler.js - Re-enabled dark theme preference in camoufox.cfg (extensions.activeThemeID) - Removed XPIProvider crash prevention comment as issue is resolved * fix: remove redundant Services import as it's available globally in XPCOM component context - Removed ChromeUtils.importESModule imports for XPCOMUtils, ComponentUtils, and Services - Added comment explaining Services is available as a global in XPCOM component context - Services.scriptloader.loadSubScript call continues to work with global Services reference * fix: correct JugglerFrameChild.sys.mjs path by removing duplicate content directory - Changed esModuleURI from 'chrome://juggler/content/content/JugglerFrameChild.sys.mjs' to 'chrome://juggler/content/JugglerFrameChild.sys.mjs' - Removes erroneous duplicate 'content' directory in the child actor module path * fix: add ESM module entries and correct JugglerFrameChild.jsm path in jar.mn - Added JugglerFrameParent.sys.mjs entry to juggler.jar manifest - Added JugglerFrameChild.sys.mjs entry to juggler.jar manifest - Fixed JugglerFrameChild.jsm path from 'content/content/JugglerFrameChild.jsm' to 'content/JugglerFrameChild.jsm' removing duplicate content directory * fix: remove redundant Services lazy getter as it's available globally in content process context - Removed ChromeUtils.defineLazyGetter for Services in main.js - Added comment explaining Services is available as a global - Services reference continues to work with global availability in content process --------- Co-authored-by: Nirupam Bhowmick <48842933+heydryft@users.noreply.github.com>