Add Waterfox support#42
Open
to-olga wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #39
Adds support for Waterfox (a Firefox fork) across all ReDD Blocker subsystems. Waterfox uses the same WebExtension API as Firefox, so the ReDD Focus extension works identically - no changes to the extension itself.
Changes
Backend
profile_scan.rsWaterfox/Profiles/on both platforms. Reuses Firefox's profile parsing logic via sharedscan_firefox_like()function.native_host_install.rsBrowserTarget::Waterfox. Writes native messaging manifest to the sameMozilla/NativeMessagingHostsdirectory on macOS (Waterfox reads from there);HKCU\Software\BrowserWorks\Waterfox\NativeMessagingHosts\on Windows.blocking_method.rsenforcer.rsWaterfox/waterfox.exeprocess and routes through extension compliance checking.extension_install.rspolicies.json, Windows registry). Shared helpers to avoid code duplication with Firefox.commands/browser_ext.rsopen_browser_extension_settingsandopen_url_in_browsernow handle thewaterfoxkey.Frontend
app.jsBROWSER_STORE_LINKS,MIGRATION_BROWSER_ORDER, compliance checks, extension URL mapping, diagnostics, enforcer copy, macOS howto, uninstall callout, Waterfox icon (official Waterfox logo).Docs
README.mdKey findings during implementation
~/Library/Application Support/Mozilla/NativeMessagingHosts/(same as Firefox), not a Waterfox-specific directory.BrowserWorks\Waterfox\, not straightWaterfox\.waterfox_app_installed()andwaterfox_app_present()functions are public sonative_host_installcan gate manifest writes on Waterfox being installed.Testing
about:addonsin Waterfoxcargo checkpasses