VOOZH about

URL: https://phabricator.services.mozilla.com/D298808

⇱ ⚙ D298808 Bug 2025868 - Dont restrict searchmode queries. r=Mak


Bug 2025868 - Dont restrict searchmode queries. r=Mak
Needs ReviewPublic

Authored by daleharvey on May 6 2026, 12:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 8, 8:10 AM
Unknown Object (File)
Tue, Jun 2, 10:35 AM
Unknown Object (File)
Mon, Jun 1, 8:37 PM
Unknown Object (File)
Mon, Jun 1, 8:17 PM
Unknown Object (File)
Mon, Jun 1, 12:18 PM
Unknown Object (File)
Fri, May 29, 5:07 PM
Unknown Object (File)
Mon, May 25, 10:18 PM
Unknown Object (File)
Thu, May 21, 11:55 PM
Subscribers

Details

Reviewers
mak
simonf
Group Reviewers
urlbar-reviewers
Bugzilla Bug ID
2025868

Diff Detail

Repository
rFIREFOXAUTOLAND firefox-autoland
Branch
HEAD

Event Timeline

daleharvey created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".May 6 2026, 12:33 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
daleharvey updated this revision to Diff 1288803.
daleharvey retitled this revision from WIP: Bug 2025868 - WIP - Dont restrict searchmode in scotchBonnet v2 to Bug 2025868 - Dont restrict searchmode queries. r=Mak.
daleharvey added a reviewer: mak.
Comment Actions

Not expecting to land this straight away, mostly for feedback on the approach, the general idea is that search mode becomes "temporarily change the default engine" and not have quite large changes in behaviour that are not always obvious

mak requested changes to this revision.Mon, Jun 8, 5:29 PM
Comment Actions

The approach may be ok, I'm mostly worried about 2 things:

  1. I'm not sure it always makes sense, searching tags or bookmarks are directly accessible from menus, we're also adding a shortcut to search tabs, they should not really do more than that
  2. possible consequences of some .searchMode check that this doesn't handle, or unexpected states anyway
browser/components/urlbar/UrlbarProvidersManager.sys.mjs
940 ↗(On Diff #1288803)

'd probably modify acceptableSources by modifying sources here https://searchfox.org/firefox-main/rev/d6bfff43852356ca98af848b4705d37f8d41856f/browser/components/urlbar/UrlbarUtils.sys.mjs#1648-1652 instead of bypassing it just here.

This revision now requires changes to proceed.Mon, Jun 8, 5:29 PM
daleharvey updated this revision to Diff 1295024.
Comment Actions
  1. I'm not sure it always makes sense, searching tags or bookmarks are directly accessible from menus, we're also adding a shortcut to search tabs, they should not really do more than that

Yeh agree this doesn't make sense for local search mode where the conceptual model of "temporarily changing your default engine" doesn't apply anyway so have restricted this behaviour to engine search modes only.

Comment Actions

I have also put this behind a new pref, there were some concerns about it affecting telemetry so want to be prudent, at this point it is for Paul to evaluate and test before we plan for release, these should be shortlived prefs.

Revision Contents

PathSize
browser/
components/
urlbar/
2 lines
2 lines
2 lines
3 lines
2 lines
2 lines
2 lines
2 lines
2 lines
3 lines
2 lines
2 lines
2 lines
2 lines
5 lines
2 lines
2 lines
2 lines
2 lines
2 lines
14 lines
content/
6 lines
6 lines
CommitTreeParentsAuthorSummaryDate
0df653b457f1d87648bced34f19dd05bb08eDale Harvey
Bug 2025868 - Dont restrict searchmode queries. r=Mak (Show More…)
May 5 2026, 10:48 AM

Diff 1295035

browser/components/urlbar/ActionsProviderContextualSearch.sys.mjs

Loading...

browser/components/urlbar/ActionsProviderQuickActions.sys.mjs

Loading...

browser/components/urlbar/UrlbarMuxerStandard.sys.mjs

Loading...

browser/components/urlbar/UrlbarPrefs.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderAiChat.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderAliasEngines.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderBookmarkKeywords.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderCalculator.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderClipboard.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderInputHistory.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderOmnibox.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderQuickSuggest.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderQuickSuggestContextualOptIn.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderRecentSearches.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderRestrictKeywords.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderRestrictKeywordsAutofill.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderSemanticHistorySearch.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderTokenAliasEngines.sys.mjs

Loading...

browser/components/urlbar/UrlbarProviderTopSites.sys.mjs

Loading...

browser/components/urlbar/UrlbarUtils.sys.mjs

Loading...

browser/components/urlbar/content/SmartbarInput.mjs

Loading...

browser/components/urlbar/content/UrlbarInput.mjs

Loading...