Skip to content

Add mozilla-firefox-windows extension - #30663

Closed
rockschtar wants to merge 2 commits into
raycast:mainfrom
rockschtar:ext/mozilla-firefox-windows
Closed

rockschtar wants to merge 2 commits into
raycast:mainfrom
rockschtar:ext/mozilla-firefox-windows

Conversation

@rockschtar

@rockschtar rockschtar commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Description

New Windows-only extension: Mozilla Firefox (Windows) — the Windows counterpart to the existing macOS-only mozilla-firefox extension, with an independent implementation.

Commands:

  • Search History — searches browser history by title and URL, grouped by day. Redirect artifacts are filtered out (hidden = 0), matching Firefox's own address bar behavior.
  • Search Bookmarks — searches bookmarks by title and URL. Unlike the macOS variant (which parses the daily bookmarkbackups lz4 files), bookmarks are queried live from moz_bookmarks in places.sqlite, so results are always current.
  • New Tab — opens an empty tab or searches the web with a configurable search engine (Google, DuckDuckGo, Bing, Baidu, Brave), showing matching history entries while typing.

Implementation notes:

  • History and bookmarks are read directly from the default profile's places.sqlite (read-only, via useSQL from @raycast/utils). No data ever leaves the machine.
  • Profile detection prefers *.default-release → *.default-nightly → *.default-esr → *.default, with a profileDirectorySuffix preference to pick a specific profile (same approach as the macOS variant).
  • URLs are opened via Action.Open with application="firefox" — no shell invocations.
  • Search terms are SQL-escaped before being interpolated into the LIKE clauses.

Screencast

Search History

Search Bookmarks

New Tab

Checklist

@raycastbot raycastbot added new extension Label for PRs with new extensions platform: Windows labels Aug 31, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@rockschtar
rockschtar marked this pull request as ready for review August 31, 2026 12:53
@greptile-apps

greptile-apps Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds a Windows-only Mozilla Firefox extension for searching live history and bookmarks and opening new tabs or web searches.

  • Reads Firefox history and bookmarks from the selected profile’s places.sqlite.
  • Adds profile auto-detection and configurable search-engine behavior.
  • Includes Windows-specific package metadata, screenshots, documentation, and build configuration.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
extensions/mozilla-firefox-windows/src/hooks/useHistorySearch.tsx Queries visible Firefox history and now converts visit timestamps to local time consistently with downstream date grouping.
extensions/mozilla-firefox-windows/src/components/FirefoxActions.tsx Defines Firefox opening and search actions while correctly using the generated command-level preference type.
extensions/mozilla-firefox-windows/src/util/index.ts Resolves Firefox profiles, reads the generated extension-level preference type, and constructs escaped search predicates.
extensions/mozilla-firefox-windows/package.json Declares the Windows extension, its three commands, preferences, dependencies, and marketplace metadata.

Reviews (2): Last reviewed commit: "Fix timezone in history grouping and use..." | Re-trigger Greptile

@0xdhrv 0xdhrv self-assigned this Sep 11, 2026
@0xdhrv
0xdhrv marked this pull request as draft September 11, 2026 19:11

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution 🔥

We already have an extension in the Store that covers the same core functionality:

Both search Firefox bookmarks and history and open a new tab, with the same search-engine set and a profile-suffix preference. Windows support for those three commands shipped in #30285 on 2026-09-09.

The existing extension already provides:

  • Search History from places.sqlite
  • Search Bookmarks
  • New Tab with Google / DuckDuckGo / Bing / Baidu / Brave
  • Windows profile resolution under %APPDATA%\Mozilla\Firefox\Profiles, plus Nightly / ESR / Developer Edition

This PR adds some useful capabilities:

  • Live bookmark reads from moz_bookmarks instead of the daily lz4 backup
  • Filtering redirect artifacts with hidden = 0

Those belong as improvements to Mozilla Firefox rather than a second Store listing for the same workflow.

Could we consider contributing the live bookmark query and history filter there instead?

This would help avoid duplication and keep Firefox search consolidated in one extension.
As mentioned in our extension guidelines here ↗

I'm looking forward to testing this extension again 🔥


I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊

@rockschtar

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough review and for pointing to the existing Mozilla Firefox extension! Makes sense to keep Firefox search consolidated in one listing.

I'll close this PR and contribute the improvements (live bookmark reads from moz_bookmarks, hidden = 0 history filter, plus a few related fixes: local-time timestamps, URL search, and escaping of search terms) to the Mozilla Firefox extension in a separate PR.

@rockschtar rockschtar closed this Sep 11, 2026
@rockschtar rockschtar mentioned this pull request Sep 11, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants