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
Nicolas Chevobbe 14ff2e3235 Bug 1476656 - Trigger autocomplete on bracket; r=Honza.
This patch adds the ability to open the autocomplete popup when
typing an opening bracket (i.e. `[`]) in the console input.
This impacts a significant amount of function where we assumed
that the only way to get a completion was to use a dot.
We uses the rename `anylyzeInputString` function to get the
completion part from an input, as well as if the user is performing
an element access (i.e., using the bracket).
We then send that information to the webconsole actor, which send
it to the client.
This allows us to rely on a single parse of the input and gives us
access to this information everywhere we need to, be it on the client
or on the server.

We allow the user to type property name without quotes, and we add
them when the user accept an autocompletion.
We also automatically add a closing bracket (i.e. `]`), when it's needed.

Some test are added. On the server side to make sure the actor's autocomplete
function returns what's expected.
We take that as an opportunity to add test for commands.
On the client side, tests are added to ensure the different behavior works
as expected (check the completion text and the input  after accepting
the completion when the user entered some letters, or not, with or without
quotes, with different quotes, hitting the autocomplete cache, …).

A test which accesses the autocomplete cache was modified since the shape
of the cache changed to include the last matchProp as well as the
isElementAccess boolean.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 13:54:35 +00:00
.cargo Bug 1468950 - Update serde_derive patch for changes in WR PR 2819. r=Gankro 2018-06-21 08:15:40 -04:00
.vscode Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handle clang/Windows output - r=jya 2018-09-21 10:00:59 +00:00
accessible Merge mozilla-central to autoland 2018-09-26 15:57:12 +03:00
browser Backed out changeset 834bfb49df9a (bug 1491436) for failing in browser_applications_selection.js CLOSED TREE 2018-09-26 17:11:21 +03:00
build Bug 1482435 - Separate out nodejs finding logic from configure and use it for ESLint. r=firefox-build-system-reviewers,gps 2018-09-25 18:15:51 +00:00
caps Bug 1473933: Remove xpinstallConfirm dialog. r=aswan 2018-09-25 15:33:52 -07:00
chrome Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame 2018-09-21 15:30:37 +00:00
config Bug 1494038 - Prefix REPORT_BUILD with relativesrcdir; r=firefox-build-system-reviewers,nalexander 2018-09-25 19:05:02 +00:00
db Bug 1491671 - Upgrade to SQLite 3.25.1. r=mak 2018-09-19 13:28:02 +00:00
devtools Bug 1476656 - Trigger autocomplete on bracket; r=Honza. 2018-09-26 13:54:35 +00:00
docshell Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
dom Merge inbound to mozilla-central. a=merge 2018-09-26 15:54:41 +03:00
editor Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
embedding
extensions Bug 1494145 - Reland bug 1491061 part 3 again (this time without the browser.contentblocking.rejecttrackers.ui.enabled pref) 2018-09-25 23:27:25 -04:00
gfx Bug 1488573 - Fix merge conflict with inbound. r=me a=ebalazs 2018-09-26 15:58:11 +02:00
gradle/wrapper Bug 1476165 - Part 2: Update Android Gradle plugin to version 3.1.0. r=nalexander,snorp 2018-07-17 13:20:19 +01:00
hal Bug 1488401 - Remove the remnants of the DiskSpaceWatcher r=asuth,janv,smaug 2018-09-13 06:40:51 +00:00
image Bug 1492930 - Part 6. Integrate extra shared surface memory reporting with imagelib. r=tnikkel 2018-09-25 09:13:52 -04:00
intl Bug 1493625 - Make LocaleService::IsAppLocaleRTL react to pseudo. r=flod,jfkthame 2018-09-25 16:48:16 +00:00
ipc Bug 1492745 - Remove PWebRenderBridge::Create() r=mattwoodrow,froydnj 2018-09-26 10:19:18 +09:00
js Merge mozilla-central to autoland 2018-09-26 15:57:12 +03:00
layout Merge inbound to mozilla-central. a=merge 2018-09-26 15:54:41 +03:00
media Bug 1473736 - Implement necko part of ESNI r=mak,kmag,mcmanus 2018-09-22 23:54:11 +03:00
memory Bug 1480457-Correct typedef so it matches an earlier typedef r=aklotz 2018-08-30 23:05:59 +03:00
mfbt Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
mobile Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
modules Bug 1492012 - Enable scrollbar-color and scrollbar-width by default. r=heycam 2018-09-26 03:30:32 +00:00
mozglue Bug 1490240 - Fix the remaining compiler warnings in the crash reporter r=ted,glandium 2018-09-26 11:54:34 +00:00
netwerk Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03: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 1490264 Part 2 - Document our SFX stub version resource edits. r=agashlin 2018-09-11 11:17:30 -07:00
parser Bug 1415980 - make hash keys movable and not copyable; r=erahm 2018-09-20 11:20:36 -04:00
python Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao 2018-09-25 18:30:23 +00:00
security Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2018-09-20 12:47:19 +00:00
servo Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
startupcache Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
storage Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8 2018-09-06 16:39:35 -04:00
taskcluster Bug 1493997: [taskgraph] Add missinng ) in comment. 2018-09-26 00:38:15 +00:00
testing Backed out changeset 1a24a41b377e (bug 1493546) for failures in test_navigation.py CLOSED TREE 2018-09-26 16:42:17 +03:00
third_party Bug 1494042. Update Cargo lockfile and re-vendor rust dependencies 2018-09-26 00:37:48 -04:00
toolkit Merge mozilla-central to autoland 2018-09-26 15:57:12 +03:00
tools Bug 1493997: [mozharness] Ensure that MOZ_TOOLCHAINS isn't specified if mach isn't available; r=ahal 2018-09-25 18:26:10 +00:00
uriloader Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
view Backout changeset c5b3caf36ddf (bug 1490297) for causing bug 1493081 and making Nightly unusable; a=Aryx 2018-09-21 13:59:25 -04:00
widget Bug 1489963 - Draw scrollbars with Gtk widget state and use backdrop state for inactive scrollbars, r=jhorak 2018-09-25 11:57:53 +00:00
xpcom Bug 1493145 - [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query, r=dao 2018-09-25 11:53:04 +00:00
xpfe/appshell Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE 2018-09-26 06:16:22 +03:00
.arcconfig Bug 1460463 - Update .arcconfig to make history mutable; r=gps 2018-05-09 23:49:52 +00:00
.clang-format
.clang-format-ignore Bug 1489449 - Add prio and other thirdparty libs to the list of thirdparty code r=janx 2018-09-07 12:08:25 +00:00
.cron.yml Bug 1493071 Rename bouncer_check cron task r=mtabara 2018-09-24 16:01:45 +00:00
.eslintignore Bug 1493967 - Add devtools webconsole's automatically generated stub files to the ESLint ignore list. r=nchevobbe 2018-09-25 14:16:52 +00:00
.eslintrc.js Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop 2018-08-31 06:06:08 +00:00
.flake8 Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03: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
.gitignore Bug 1484708 - Update .gitignore rules and add js/src/obj-*. r=ted.mielczarek 2018-08-20 09:03:00 +03:00
.hgignore Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
.hgtags No bug - Tagging mozilla-central 034c5ef24e98b0ce85fa849face079f568eb397c with FIREFOX_NIGHTLY_63_END a=release DONTBUILD CLOSED TREE 2018-09-04 11:10:28 -07: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 Bug 1490515: add "on-completed" notify route to try push decision tasks r=tomprince 2018-09-24 13:46:55 +00: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
aclocal.m4
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 1485439 - Pre: Upgrade Android Gradle plugin. r=nalexander 2018-09-04 22:33:00 +02:00
Cargo.lock Bug 1494042. Update Cargo lockfile and re-vendor rust dependencies 2018-09-26 00:37:48 -04:00
Cargo.toml Bug 1474871 - Link dump_syms against rustc-demangle. r=ted 2018-07-12 10:23:12 +09:00
client.mk bug 1490325 - write sccache log directly to artifact directory, make logs slightly more verbose. r=mshal 2018-09-18 20:02:17 +00:00
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-09-04 11:15:27 -07:00
configure.in
configure.py Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in bug 1490325 - write sccache log directly to artifact directory, make logs slightly more verbose. r=mshal 2018-09-18 20:02:17 +00:00
moz.build Bug 1346026 - Vendor pipenv 2018.5.18 and transient dependencies; r=ahal 2018-05-17 19:06:20 +01:00
moz.configure Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
mozilla-config.h.in Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted 2018-05-22 20:36:39 -07:00
old-configure.in Backed out 2 changesets (bug 1483780) for build bustages on a CLOSED TREE 2018-09-21 05:43:03 +03:00
package-lock.json Bug 1493654 - Upgrade eslint-plugin-html to 4.0.6 to pick up performance fix. r=mossop 2018-09-24 15:33:56 +00:00
package.json Bug 1493654 - Upgrade eslint-plugin-html to 4.0.6 to pick up performance fix. r=mossop 2018-09-24 15:33:56 +00:00
Pipfile Bug 1490128: upgrade json-e==2.7.0 r=davehunt 2018-09-11 21:14:52 +00:00
Pipfile.lock Bug 1490128: upgrade json-e==2.7.0 r=davehunt 2018-09-11 21:14:52 +00:00
README.txt
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.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

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