Repository navigation
fix(research): classify Gecko browsers whose URL the macOS helper captures - #153
Conversation
…tures The macOS helper extracts the page URL for Firefox Nightly, Zen, LibreWolf, Waterfox and Floorp (FIREFOX_BROWSERS), but the research filter's browser sets (Python BROWSER_APPS and Swift researchBrowserApps) did not list them. Research Edition therefore treated them as non-browser apps and never classified their pages. Add the names to both sets and a test that every URL-capturing macOS browser is a research browser. Git-Session-Id: eb31
|
|
CI-green and mergeable — waiting only on a maintainer click. This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted. |
🤖 AI code reviewAdds six Gecko-based browser names (Firefox Nightly, Zen, Zen Browser, LibreWolf, Waterfox, Floorp) to the research browser sets in both the Python research_filter.py and the Swift macos.swift helper, and adds a test asserting that every entry in the Swift CHROME_BROWSERS and FIREFOX_BROWSERS lists satisfies is_browser(). Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No findings. The diff looks correct to me on this pass. Files changed (3) — the diff as I read it
Reviewed Maintainer commands
|
The macOS helper captures the page URL for every app in
FIREFOX_BROWSERS(Firefox Nightly,Zen,Zen Browser,LibreWolf,Waterfox,Floorp, added in #134). The research filter's browser sets — PythonBROWSER_APPSand SwiftresearchBrowserApps— never listed them, so Research Edition treated these as non-browser apps: the captured URL was dropped and the page was never classified (only the app name, orExcludedwith an app map).CHROME_BROWSERSandFIREFOX_BROWSERSmust satisfyis_browser(). It fails on master and passes here, so the URL-capture list and the research browser set can't drift apart again.Not changed: Windows/Linux executable/WM_CLASS names for these browsers. Those platforms are title-only; I didn't add names I can't verify from this repo.
Verification:
pytest tests/test_research_filter.py→ 53 passed (1 failed on master). Swift not compiled here (Linux host); the Swift change is list entries only.