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 b52e93223b Bug 1521236 - Add UrlbarInput.autofill(), call it from the controller, and disable autofill when the new search string is a prefix of the old string. r=mak
There are two parts to this:

When the controller receives the first result and the context has an autofill value, then call a new input.autofill() method, which does the actual autofill in the input.

We shouldn't autofill when the user back spaces.  Actually back spacing is just one example of deleting text at the end of the input; the user could select text and press delete, or use the delete-previous-word key shortcut, etc.  So it's not correct to simply check whether the last keypress was a backspace and skip autofill then.  We should copy the logic of the legacy autocomplete controller and check whether the new search string is a prefix of the old string.  If so, then don't autofill.  So I added that logic to UrlbarInput.  I could have added similar logic to the controller or the context instead, but it makes the most sense being in the input since it's the input where the user is interacting with the text value.

Differential Revision: https://phabricator.services.mozilla.com/D17040

--HG--
extra : moz-landing-system : lando
2019-01-23 19:37:20 +00:00
.cargo Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats 2018-11-05 13:14:07 +00:00
.vscode Bug 1514820 - Recommend a VSCode extension for IDL language highlighting r=jya 2018-12-18 19:43:33 +00:00
accessible Backed out 3 changesets (bug 1520611) for Android gv-junit failures in org.mozilla.geckoview.test.AccessibilityTest.testTree 2019-01-23 12:09:29 +02:00
browser Bug 1521236 - Add UrlbarInput.autofill(), call it from the controller, and disable autofill when the new search string is a prefix of the old string. r=mak 2019-01-23 19:37:20 +00:00
build Bug 1521691 - Move the remains of CC_VERSION to python configure. r=chmanchester 2019-01-23 00:27:38 +00:00
caps Bug 1518991 - Make nsIPrincipal URI getter infallible; r=bholley 2019-01-10 05:44:33 +00:00
chrome Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
config Bug 1521691 - Remove _MSC_VER from configure. r=chmanchester 2019-01-23 00:35:10 +00:00
db Bug 1270882 - Enable support for SQLite custom FTS3 tokenizers at run time. r=mak 2018-11-29 23:02:10 +00:00
devtools Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-23 20:53:05 +02:00
docshell Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8,Gijs 2019-01-23 17:03:32 +00:00
dom Bug 1509112 - Consider the content frame sitting directly beneath a moz-extension frame that has a host permission granting access to that frame as a top-level frame; r=kmag,baku 2019-01-23 14:55:49 +00:00
editor Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
embedding Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
extensions Bug 1520361 - Add Telemetry to know how people add site to the exception list. r=smaug,cpearce,janerik 2019-01-22 18:22:44 +00:00
gfx Backed out 3 changesets (bug 1455848) for causing build bustages. CLOSED TREE 2019-01-23 21:22:36 +02:00
gradle/wrapper Bug 1509572 - Part 1: Bump Gradle wrapper to 4.10.2; decouple script from Gradle version. r=snorp 2018-11-26 21:42:27 +00:00
hal Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
image Backed out changeset 9fedba33cfa3 (bug 1514396) for causing regression Bug 1521239, requested by jkt. CLOSED TREE 2019-01-21 14:21:30 +02:00
intl Bug 1521279 - Update Fluent migration documentation to include whitespaces trimming and parameter normalization r=Pike 2019-01-21 15:00:00 +00:00
ipc Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
js Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-23 20:53:05 +02:00
layout Merge mozilla-inbound to mozilla-central. a=merge 2019-01-23 18:51:14 +02:00
media Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-21 20:01:06 +02:00
memory Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
mfbt Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
mobile Bug 1485809 - Fix race with compositor attachment r=geckoview-reviewers,droeh#geckoview-reviewers 2019-01-23 16:31:08 +00:00
modules Bug 1521012 - [Linux/GNOME] Use X shape mask to draw transparent corners when we draw to titlebar, r=lsalzman 2019-01-23 12:36:25 +00:00
mozglue Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
netwerk Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-23 20:53:05 +02:00
nsprpub Bug 1477680, NSPR 4.20 RTM, no code change, only version number, r=me 2018-08-28 16:21:01 +02:00
other-licenses Bug 1514806 Part 4 - Update the LZMA SDK package documentation to explain the new files. r=agashlin 2019-01-22 21:58:47 +00:00
parser Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
python Backed out changeset 3b666f82d750 (bug 1517519) for Browser-chrome failures in browser/components/sessionstore/test/browser_background_tab_crash.js. CLOSED TREE 2019-01-23 18:00:01 +02:00
security Merge mozilla-central to autoland 2019-01-23 11:31:44 +02:00
services Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8,Gijs 2019-01-23 17:03:32 +00:00
servo Bug 1521405 - Cleanup a few shorthand properties. r=heycam 2019-01-23 18:53:45 +01:00
startupcache Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
storage Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
taskcluster Merge mozilla-central to autoland 2019-01-23 11:31:44 +02:00
testing Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-23 20:53:05 +02:00
third_party Backed out 3 changesets (bug 1455848) for causing build bustages. CLOSED TREE 2019-01-23 21:22:36 +02:00
toolkit Bug 1517639: Add launcher process state to the telemetry environment; r=janerik 2019-01-23 18:59:51 +00:00
tools Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8,Gijs 2019-01-23 17:03:32 +00:00
uriloader Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
view Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
widget Bug 1521012 - [Linux/GNOME] Use X shape mask to draw transparent corners when we draw to titlebar, r=lsalzman 2019-01-23 12:36:25 +00:00
xpcom Bug 1502797 - Reimplement BigInt using V8/JSC code instead of GMP r=jwalden 2019-01-23 11:13:51 +00:00
xpfe/appshell Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
.arcconfig Bug 1460463 - Update .arcconfig to make history mutable; r=gps 2018-05-09 23:49:52 +00:00
.clang-format Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
.clang-format-ignore Bug 1508115 - Web Authentication - Support Windows Hello r=keeler,jcj,baku 2019-01-21 01:10:44 +00:00
.cron.yml Bug 1514087: [taskgraph] Add an option to not optimize target tasks in cron graphs; r=dustin 2018-12-26 14:43:34 +00:00
.eslintignore Bug 1508985 - Enable ESLint for dom/tests/browser (manual changes) r=Standard8,qdot 2019-01-22 21:26:02 +00:00
.eslintrc.js Bug 1515942 - Enable ESLint for gfx/ (manual fixes). r=kats 2018-12-27 09:45:01 +00:00
.flake8 Bug 1519307 - Add a new project to build useful parts of breakpad independently. r=froydnj 2019-01-11 16:01:15 +00:00
.gdbinit Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan 2018-08-28 20:20:21 +00:00
.gdbinit_python
.git-blame-ignore-revs Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
.gitignore Bug 1513450 - Do not ignore .rej/.orig files. r=firefox-build-system-reviewers,nalexander 2018-12-17 21:41:01 +00:00
.hg-annotate-ignore-revs Bug 1508324 - Generate list of past changesets to be skipped for blame. r=me NPOTB DONTBUILD 2018-12-27 18:08:25 -02:00
.hg-format-source Bug 1511181 - Quick fix for .hg-format-source that has an empty line. r=ehsan, a=aryx 2018-11-30 13:25:44 +02:00
.hgignore Bug 1513450 - Do not ignore .rej/.orig files. r=firefox-build-system-reviewers,nalexander 2018-12-17 21:41:01 +00:00
.hgtags No bug - Tagging mozilla-central 254bd88c107271f3d1c2ca9969acc0ed507f0a8d with FIREFOX_BETA_66_BASE a=release DONTBUILD CLOSED TREE 2019-01-21 04:50:01 -08:00
.lldbinit Bug 1481555: Use lldb's python API to summarise nsAtoms. r=froydnj 2018-08-08 15:11:22 +00:00
.mailmap
.taskcluster.yml Backed out changeset aee9f213f3c7 (bug 1496890) for causing Bug 1521264. a=backout 2019-01-19 11:22:32 +02:00
.trackerignore Bug 1486468 - Add .trackerignore file to avoid GNOME Tracker indexing mozilla-central files. r=ahal 2018-08-27 16:45:03 +02:00
.yamllint
.ycm_extra_conf.py Bug 1522140 - Make .ycm_extra_conf.py handle headers better. r=Ehsan 2019-01-23 17:17:18 +00:00
aclocal.m4 Bug 1519603 - Manually inline AC_OUTPUT_SUBDIRS and MOZ_RUN_ALL_SUBCONFIGURES. r=nalexander 2019-01-14 18:37:06 +00:00
AUTHORS Bug 1481409 - Use HTTPS protocol for Mozilla's Credits link in AUTHORS file r=mossop 2018-08-13 16:39:30 +00:00
build.gradle Bug 1521404 - Fix apilint warnings about BuildConfig. r=geckoview-reviewers,snorp 2019-01-23 14:48:12 +00:00
Cargo.lock Backed out 3 changesets (bug 1455848) for causing build bustages. CLOSED TREE 2019-01-23 21:22:36 +02:00
Cargo.toml Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel 2018-11-22 21:47:48 +00:00
client.mk Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-12-10 07:58:12 -08:00
configure.in
configure.py Bug 1520394 - Don't invoke js subconfigure as a separate process. r=nalexander 2019-01-16 23:42:12 +00:00
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1507334 - Remove '10' argument to profileserver.py; r=firefox-build-system-reviewers,chmanchester#firefox-build-system-reviewers 2019-01-10 01:34:39 +00:00
moz.build Bug 1507334 - Add mozconfigs for 3-stage PGO; r=firefox-build-system-reviewers,chmanchester#firefox-build-system-reviewers 2019-01-10 01:34:49 +00:00
moz.configure Bug 1520340 - Move subconfigure invocation from old-configure to python configure. r=froydnj 2019-01-16 23:12:20 +00:00
mozilla-config.h.in Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen 2018-11-02 13:28:01 -05:00
old-configure.in Bug 1521691 - Move the remains of CC_VERSION to python configure. r=chmanchester 2019-01-23 00:27:38 +00:00
package-lock.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
package.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
README.txt Bug 1480997 - Remove "Mozilla FTP server" link in README.txt r=mossop 2018-10-23 10:06:29 +00:00
settings.gradle
test.mozbuild

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

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

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 Mozilla developers for
testing, may be buggy.