fune/browser/components/urlbar
Drew Willcoxon 9d862c22c5 Bug 1729195 - When the heuristic is hidden, include results that dupe it. r=mak
When the heuristic is hidden, we shouldn't exclude results that dupe it.

I realized this while working on the top hit bug 1723160. I have nytimes.com in
my profile with a very high frecency. When I enable the `hideHeuristic` pref,
nytimes.com autofills but it doesn't appear anywhere in the results, which is
confusing. After autofill, if I start to backspace over characters, then it
appears as the top hit because when backspacing the heuristic becomes a search
result.

There are three cases where we dedupe that currently depend on the heuristic and
therefore need to take into account when the heuristic is hidden:

* Autofill
* Prefix ranking/priority
* Search suggestions

The search suggestions case is maybe debatable. If you type "foo" and there's a
"foo" search suggestion but the heuristic is hidden, should we exclude the
suggestion? IMO we should include it because it may not be clear to the user
that pressing enter without selecting a result will perform a search for
"foo". It's better to let them see the result and select it. That means we may
end up pushing out the last search suggestion we would have otherwise shown, but
the last suggestion would have been pushed out anyway if the heuristic weren't
hidden, and IIRC we know that people rarely pick suggestions or results far down
the list anyway. In fact excluding the first suggestion probably excludes
exactly what they want to search for.

I've updated the relevant tests so they run some tasks with `hideHeuristic`
enabled.

I removed test_dupe_urls.js because I checked it to see if it needs updating and
it doesn't really do anything. It doesn't even call `PlacesTestUtils.addVisits`
correctly because it passes in two URLs, but `addVisits` only takes one
argument.

Differential Revision: https://phabricator.services.mozilla.com/D124564
2021-09-30 18:31:07 +00:00
..
content Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao 2021-09-15 15:39:48 +00:00
docs Bug 1723860 - Add event telemetry for Firefox Suggest onboarding modal prompt. r=dao 2021-09-11 11:00:58 +00:00
tests Bug 1729195 - When the heuristic is hidden, include results that dupe it. r=mak 2021-09-30 18:31:07 +00:00
unitconverters Bug 1715544 - Extend timezone converter's 12h correction logic for times between 12pm and 1pm, and 12am and 1am. Add testcases. r=nhnt11 2021-06-17 15:59:31 +00:00
.eslintrc.js
jar.mn Bug 1727907 - Make Firefox Suggest an opt-in feature and update the onboarding dialog accordingly. r=daleharvey 2021-08-30 15:56:28 +00:00
moz.build Bug 1717509 - Part 4 - Remove files and result group related to UnifiedComplete. r=adw 2021-07-09 23:52:39 +00:00
UrlbarController.jsm
UrlbarEventBufferer.jsm
UrlbarInput.jsm Bug 1727668 - Integrate Merino with Firefox Suggest/quick suggest. r=mak,nanj 2021-08-30 22:48:12 +00:00
UrlbarMuxerUnifiedComplete.jsm Bug 1729195 - When the heuristic is hidden, include results that dupe it. r=mak 2021-09-30 18:31:07 +00:00
UrlbarPrefs.jsm Bug 1731373 - Add a hook for Firefox Suggest to notify TelemetryEnvironment when it updates. r=chutten 2021-09-18 00:37:15 +00:00
UrlbarProviderAboutPages.jsm Bug 1712352 - Part 2 - Remove about pages code from UnifiedComplete. r=adw 2021-06-03 19:32:15 +00:00
UrlbarProviderAliasEngines.jsm Bug 1714409 - Part 2 - Remove _matchSearchEngineAlias from UnifiedComplete. r=adw 2021-06-17 11:34:13 +00:00
UrlbarProviderAutofill.jsm Bug 1662167 - Split UrlbarInputHistoryProvider from UnifiedComplete. r=adw 2021-06-02 15:16:56 +00:00
UrlbarProviderBookmarkKeywords.jsm Bug 1724016: Avoid unescaping if the URI is over the limit. r=adw 2021-08-12 23:56:45 +00:00
UrlbarProviderCalculator.jsm
UrlbarProviderExtension.jsm Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw 2021-07-09 23:52:39 +00:00
UrlbarProviderHeuristicFallback.jsm Bug 1724016: Avoid unescaping if the URI is over the limit. r=adw 2021-08-12 23:56:45 +00:00
UrlbarProviderInputHistory.jsm Bug 1725652 - Show adaptive history results if any of history, bookmarks, or open pages are enabled. r=adw 2021-08-16 16:01:40 +00:00
UrlbarProviderInterventions.jsm Bug 1725318: Avoid calculation score if the query starts with string like protocol. r=adw 2021-08-17 02:06:46 +00:00
UrlbarProviderOmnibox.jsm
UrlbarProviderOpenTabs.jsm Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw 2021-07-09 23:52:39 +00:00
UrlbarProviderPlaces.jsm Bug 1477895: Get rid of WHERE condition of bookmark and history when openpage is enabled. r=adw 2021-09-16 01:52:24 +00:00
UrlbarProviderPreloadedSites.jsm Bug 1715137 - Part 3 - Port test_preloaded_sites.js. r=adw 2021-06-22 21:02:58 +00:00
UrlbarProviderPrivateSearch.jsm
UrlbarProviderQuickSuggest.jsm Bug 1730618 - Allow Nimbus to enable Firefox Suggest online and override the offline default. r=mythmon,preferences-reviewers,mstriemer 2021-09-16 18:28:02 +00:00
UrlbarProviderRemoteTabs.jsm Bug 1677126 - Part 5 - Improve sorting of remote tabs so more recent tabs are more likely to be shown first. r=adw 2021-06-02 22:43:30 +00:00
UrlbarProviderSearchSuggestions.jsm Bug 1727668 - Integrate Merino with Firefox Suggest/quick suggest. r=mak,nanj 2021-08-30 22:48:12 +00:00
UrlbarProviderSearchTips.jsm Bug 1714337, remove separate high and non-high notification box references, r=mstriemer 2021-07-28 18:24:42 +00:00
UrlbarProvidersManager.jsm Bug 1717509 - Part 2 - Minimal working UrlbarProviderPlaces. r=adw 2021-07-09 23:52:38 +00:00
UrlbarProviderTabToSearch.jsm
UrlbarProviderTokenAliasEngines.jsm Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw 2021-07-09 23:52:39 +00:00
UrlbarProviderTopSites.jsm Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw 2021-07-09 23:52:39 +00:00
UrlbarProviderUnitConversion.jsm
UrlbarQuickSuggest.jsm Bug 1730580 - Open the Privacy pref pane and highlight the Address Bar section when the Customize button in the Firefox Suggest online onboarding dialog is clicked. r=dao 2021-09-14 12:58:01 +00:00
UrlbarResult.jsm Bug 1724016: Avoid unescaping if the URI is over the limit. r=adw 2021-08-12 23:56:45 +00:00
UrlbarSearchOneOffs.jsm Bug 1714242: Rename settingsButtonCompact with settingsButton. r=harry 2021-07-19 20:41:43 +00:00
UrlbarSearchUtils.jsm Bug 1714409 - Part 2 - Remove _matchSearchEngineAlias from UnifiedComplete. r=adw 2021-06-17 11:34:13 +00:00
UrlbarTokenizer.jsm Bug 1726837: Refactoring for splitString function. r=adw 2021-08-27 00:26:30 +00:00
UrlbarUtils.jsm Bug 1728429 - Update the Firefox Suggest Sponsored action text by wrapping the action text. r=dao 2021-09-06 20:14:47 +00:00
UrlbarValueFormatter.jsm
UrlbarView.jsm Bug 1729776 - Enable the Firefox Suggest "offline" scenario by default for users in the US region with en-* locales. r=mythmon,daleharvey,mak 2021-09-11 02:27:38 +00:00