Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Drew Willcoxon 80e0f95944 Bug 1694237 - Properly discard duplicate suggestions in urlbar results. r=mak
This was a little more work than I first thought because fixing it uncovered
another problem: The recurse logic in the muxer isn't quite right. There are a
couple of problems actually:

1. By re-using the results from children that did not fill up, we skip updating
   `stateCopy` (and therefore `state`), which messes up subsequent buckets in
   the recursion because they're working with the wrong state.
2. By simply assigning `state = stateCopy` after handling children that didn't
   fill up, we're not really doing anything because at that point the function
   is done. The caller and subsequent buckets in the recursion won't see the
   updated state. We need to update `state` in place.

These problems were revealed in test_resultBuckets.js, which is pretty thorough.

To fix the actual problem that the bug is about (not deduping remote suggestions
and form history), we just need to keep a set of suggestions that the muxer has
seen so far, and then `_canAddResult` can discard dupe suggestions. This patch
adds `state.suggestions` for that, and it includes form history, remote
suggestions, and the heuristic query when it's a search result. This way the
relative ordering of form history vs. remote suggestions doesn't matter. We'll
dedupe whichever comes later.

A bunch of tasks in test_resultBuckets.js needed to be updated to account for
this because they were incorrectly not expecting dupes to be removed.

Differential Revision: https://phabricator.services.mozilla.com/D106030
2021-02-23 17:17:31 +00:00
.cargo Bug 1693270 - Switch audioipc-2 to vendored code. r=cubeb-reviewers,padenot 2021-02-17 20:23:46 +00:00
.vscode Bug 1685030 - Remove rust from vscode extensions list. r=sylvestre DONTBUILD 2021-01-05 17:28:05 +00:00
accessible Bug 1693411: Make sure an a11y node is removed when visibility: hidden is set but the layout frame is reconstructed; e.g. position: fixed. r=eeejay 2021-02-23 01:48:15 +00:00
browser Bug 1694237 - Properly discard duplicate suggestions in urlbar results. r=mak 2021-02-23 17:17:31 +00:00
build Bug 1600239 - Make message produced by NoAddRefReleaseOnReturnChecker more explicit. r=andi 2021-02-23 16:24:30 +00:00
caps Bug 1686616 - make StringBundle use Components instead of Services. r=kmag 2021-02-18 13:26:32 +00:00
chrome Bug 1691913 - Rename nsClassHashtable::LookupOrAdd to GetOrInsertNew. r=xpcom-reviewers,nika 2021-02-22 12:07:47 +00:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-02-22 12:50:45 +00:00
devtools Bug 1692995 - [devtools] Support early calls to unwatchResources r=ochameau 2021-02-23 11:59:59 +00:00
docs Bug 1693140 - Fix the mermaid rendering issue and remove post processing script.r=sylvestre DONTBUILD 2021-02-19 08:45:10 +00:00
docshell Bug 1678255 - prompt for external protocol links whose loads were also triggered externally, instead of looping forever, r=pbz,nika 2021-02-22 19:00:10 +00:00
dom Backed out changeset cffeff2a2803 (bug 1664485) for wpt sanitizer-api related failures. CLOSED TREE 2021-02-23 17:59:59 +02:00
editor Bug 1675779 - Update browserscope for contenteditable=false case. r=masayuki 2021-02-22 10:18:49 +00:00
extensions Bug 1686616 - register all Services.py services with components.conf. r=kmag,necko-reviewers,valentin 2021-02-18 13:26:28 +00:00
gfx Bug 1692250 - Use ImageSourceHandle with Yuv image primtives. r=gw 2021-02-23 14:47:10 +00:00
gradle/wrapper
hal Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi 2021-02-15 15:12:17 +00:00
image Bug 1692391 - Replace the NS_OBJC_BEGIN/END_TRY_ABORT_BLOCK_NSRESULT macros with the functionally identical NS_OBJC_BEGIN/END_TRY_BLOCK_RETURN(NS_ERROR_FAILURE). r=haik 2021-02-16 22:55:20 +00:00
intl Bug 1686616 - register all Services.py services with components.conf. r=kmag,necko-reviewers,valentin 2021-02-18 13:26:28 +00:00
ipc Bug 1693347 - Avoid including GeckoProfiler.h in generated cpp files when it is not going to be used, r=nika. 2021-02-18 11:56:20 +00:00
js Bug 1638284 - Name the MachExceptionHandler thread started from WasmSignalHandlers.cpp, r=lth. 2021-02-23 10:07:56 +00:00
layout Bug 1694193: Fix intermittent test failure of disabled-1.html due to turning on the non-native theme on macOS by adjusting fuzziness. DONTBUILD 2021-02-23 15:12:19 +00:00
media Bug 1692575: Adapt libdav1d's moz.yaml to the new format r=jewilde 2021-02-23 16:34:39 +00:00
memory Backed out 5 changesets (bug 1690167) for failing xpcshell at bootstrapSvc.js on a CLOSED TREE 2021-02-17 07:10:58 +02:00
mfbt Backed out 5 changesets (bug 1690167) for failing xpcshell at bootstrapSvc.js on a CLOSED TREE 2021-02-17 07:10:58 +02:00
mobile Bug 1684923 - Implement Web Extension downloads.onChanged event in GeckoView r=agi,robwu,geckoview-reviewers,esawin 2021-02-22 23:54:22 +00:00
modules Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange 2021-02-23 10:49:37 +00:00
mozglue Bug 1693037 - Fix non-MOZ_GECKO_PROFILER builds - r=florian 2021-02-17 22:36:28 +00:00
netwerk Bug 1460314 - TRR: add telemetry probe for used HTTP version. r=necko-reviewers,valentin 2021-02-22 14:43:15 +00:00
nsprpub
other-licenses Bug 1692893 - Minimal patch: Workaround atk extern "C" issue. r=Jamie 2021-02-16 00:40:33 +00:00
parser Bug 1694202 - Avoid link preload header and the parser creating two preload requests for the same script. r=smaug 2021-02-23 00:43:37 +00:00
python Bug 1692575: Refactor the updatebot part of the moz.yaml schema to support multiple task types r=jewilde 2021-02-23 16:34:31 +00:00
remote Bug 1693021 - [puppeteer] Add --enable-webrender argument to mach command. r=remote-protocol-reviewers,jdescottes 2021-02-17 08:48:57 +00:00
security Bug 1692101 - Disable EV Treatment for Camerfirma's Chambers of Commerce Root - 2008 root certificate. r=mbirghan 2021-02-23 15:12:58 +00:00
services Bug 1690131: create proton-specific fxa menu r=mconley,markh,fluent-reviewers,flod 2021-02-23 15:37:12 +00:00
servo Bug 1693886 - Increase custom property size limit a bit. r=xidorn 2021-02-23 10:43:03 +00:00
startupcache Bug 1688511 - do not use 'else' after 'return'. r=sylvestre 2021-02-04 09:24:19 +00:00
storage Bug 1692880 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika 2021-02-16 15:53:33 +00:00
taskcluster Bug 1694217 - use --less-context option on submission of periodic file update patches to work around Phabricator limit to changes in file. r=mtabara DONTBUILD 2021-02-23 10:30:45 +00:00
testing Bug 1674658: part 2) Don't peform the default action for mousemove events when it should be prevented. r=smaug 2021-02-23 13:27:41 +00:00
third_party Bug 1693849 [PipeWire] Always check allocated video buffer size, r=ng 2021-02-20 17:12:56 +00:00
toolkit Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao 2021-02-23 15:03:45 +00:00
tools Bug 1693502 - Check GetObserverService() instead of gXPCOMShuttingDown to handle pre/failed-XPCOM calls - r=florian 2021-02-23 09:01:37 +00:00
uriloader Bug 1678255 - fix eslint warning for HandlerServiceTestUtils import. a=lint-fix 2021-02-22 19:39:04 +00:00
view Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
widget Backed out changeset 3bf5d4016ea7 (bug 1694059) for input range reftest failures. CLOSED TREE 2021-02-23 14:25:35 +02:00
xpcom Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-02-22 15:27:29 +02:00
xpfe/appshell Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore Bug 1686831 - Import glibc printf test cases verbatim. r=mhoye 2021-01-28 09:48:53 +00:00
.cron.yml Bug 1686969 - Make searchfox index both mozilla-central nightlies. r=kats,releng-reviewers,aki DONTBUILD 2021-01-15 20:13:32 +00:00
.eslintignore Bug 1690742 - [devtools] - Strip flow from the debugger sources. r=nchevobbe,bomsy 2021-02-22 10:48:52 +00:00
.eslintrc.js Bug 1692214, hide library button by default in proton toolbar r=mstriemer 2021-02-19 22:14:21 +00:00
.flake8 Bug 1622681 - Remove dom/encoding from flake8 excludes. r=sylvestre DONTBUILD 2021-01-21 20:50:40 +00:00
.git-blame-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.gitattributes
.gitignore Bug 1687154 - Add raptor's generated files to .gitignore. r=glandium DONTBUILD 2021-01-19 00:34:55 +00:00
.hg-annotate-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.hg-format-source
.hgignore Bug 1666347 - Delete assorted dead code after removal of vendored psutil r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.hgtags No bug - tagging 396d6048aec7d8118bf31637be4a3f5aa06d74ee with FIREFOX_NIGHTLY_87_END a=release DONTBUILD CLOSED TREE 2021-02-22 12:50:38 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright 2021-01-27 22:54:25 +00:00
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1685390 - Update apilint to 0.4.1. r=esawin 2021-01-08 16:17:22 +00:00
Cargo.lock Bug 1693270 - Switch audioipc-2 to vendored code. r=cubeb-reviewers,padenot 2021-02-17 20:23:46 +00:00
Cargo.toml Bug 1693270 - Switch audioipc-2 to vendored code - remove old linting paths. a=lint-fix 2021-02-17 20:40:57 +00:00
client.mk Backed out changeset b3654ee48ff4 (bug 1683797) for causing frequent build timeouts as bug 1411358. CLOSED TREE 2021-01-29 19:30:59 +02:00
client.py
CLOBBER
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1638960 - Run 'mach firefox-ui-functional' with Python 3. r=jgraham 2021-02-13 20:26:14 +00:00
mach.ps1 Bug 1686256 - Add Windows friendly wrapper for mach r=mhentges,firefox-build-system-reviewers,dmajor 2021-01-20 02:08:40 +00:00
Makefile.in
moz.build Bug 1687640 - Cover mach.ps1 in moz.build r=dmajor,firefox-build-system-reviewers 2021-01-20 15:20:27 +00:00
moz.configure Bug 1692416 - Allow --enable-bootstrap=install to look for aarch64 mac artifacts. r=firefox-build-system-reviewers,andi,dmajor 2021-02-12 22:28:01 +00:00
mozilla-config.h.in
old-configure.in Bug 1480005 - Move NM to python configure. r=firefox-build-system-reviewers,nalexander 2021-01-14 20:17:08 +00:00
package-lock.json
package.json
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.