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
Перейти к файлу
Masayuki Nakano 08f4c56c7e Bug 1467796 - part 2: Make autocomplete use new method TextEditor::ReplaceTextAsAction() which replaces all text with specified text r=m_kato
InputEvent.inputType needs to distinguish whether inserting text is caused
by insertText command or replaced by autocomplete or spellchecker.
Therefore, nsTextEditorState::SetValue() cannot use
TextEditor::InsertTextAsAction() nor TextEditor::DeleteSelectionAsAction().

This patch reuses TextEditor::SetText()'s slow path for the new method.

Note that the new method uses EditSubAction::eInsertText as top level edit sub-
action because specifying this improves undo/redo behavior.

And also this patch modifies test_bug1368544.html.  Oddly, only on Android,
we get different result.  After removing all text with setUserInput(""),
TextEditor::DeleteSelectionAsSubAction() removes both text node and non-bogus
<br> element from the anonymous-div element.  However, only on Android, new
<br> element is recreated.  I've not understood where this difference comes
from yet.

MozReview-Commit-ID: GKNksctGik

--HG--
rename : toolkit/content/tests/chrome/file_autocomplete_with_composition.js => toolkit/content/tests/chrome/file_editor_with_autocomplete.js
rename : toolkit/content/tests/chrome/test_autocomplete_with_composition_on_input.html => toolkit/content/tests/chrome/test_editor_for_input_with_autocomplete.html
rename : toolkit/content/tests/chrome/test_autocomplete_with_composition_on_textbox.xul => toolkit/content/tests/chrome/test_editor_for_textbox_with_autocomplete.xul
extra : rebase_source : b90419d9e5a01e86f6e6418f8df002c91416acae
2018-07-03 22:25:52 +09:00
.cargo
.vscode
accessible Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
browser Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 12:03:09 +03:00
build Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
caps Bug 1478441 - Introduce nsIURIWithSpecialOrigin needed for Thunderbird. r=baku 2018-07-31 11:27:00 +03:00
chrome
config Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 12:03:09 +03:00
db
devtools Bug 1478435 - Apply photon-styling to autocomplete popup; r=nchevobbe. 2018-07-26 09:08:10 +02:00
docshell Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
dom Bug 1467796 - part 2: Make autocomplete use new method TextEditor::ReplaceTextAsAction() which replaces all text with specified text r=m_kato 2018-07-03 22:25:52 +09:00
editor Bug 1467796 - part 2: Make autocomplete use new method TextEditor::ReplaceTextAsAction() which replaces all text with specified text r=m_kato 2018-07-03 22:25:52 +09:00
embedding
extensions Bug 1467796 - part 1: Split TextEditor::InsertTextAsAction() to itself and TextEditor::InsertTextAsSubAction() for internal use r=m_kato 2018-07-02 20:12:22 +09:00
gfx Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03: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 1465294 Part 7 - Don't send PHal message from middleman processes, r=gsvelto. 2018-07-23 14:52:33 +00:00
image Bug 1476592 - Remove the cache from nsCSPContext - part 2 - sendViolationReports parameter, r=ckerschb, r=aosmond 2018-08-01 06:35:24 +02:00
intl Backed out changeset bfaeacf41b77 (bug 1475903) for causing leaks at nsTArray_base. 2018-08-02 10:39:02 +03:00
ipc Bug 1476592 - Remove the cache from nsCSPContext - part 2 - sendViolationReports parameter, r=ckerschb, r=aosmond 2018-08-01 06:35:24 +02:00
js Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
layout Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
media Bug 1476600: Stop reusing mids from stopped transceivers. r=jib 2018-07-31 20:44:47 +00:00
memory Bug 1477626 - Use mozilla::HashTable instead of JS::HashTable in DMD. r=erahm 2018-07-26 20:15:58 +10:00
mfbt Bug 1478896 - Fix HashTable.h style. r=froydnj 2018-07-31 13:39:31 +10:00
mobile Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
modules Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 12:03:09 +03:00
mozglue Bug 1478036: Ensure that inproc nop-space patches use atomic writes; r=handyman 2018-07-26 15:34:48 -06:00
netwerk Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
nsprpub Bug 1477680, land NSPR 4.20 beta snapshot 607196c7ef66, r=me 2018-07-23 16:05:53 +02:00
other-licenses Bug 1478568 part 1: Update IAccessible2 so we can use new roles (IA2_ROLE_BLOCK_QUOTE, etc.). r=MarcoZ 2018-07-27 10:27:44 +10:00
parser Backed out changeset 9035ff3757ac (bug 1415980) at request from froydnj on the suspicion that it's going to break MSVC builds when it gets merged to central. 2018-07-31 01:19:49 +03:00
python Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00
security Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=mtabara 2018-08-01 16:18:31 -04:00
servo Merge mozilla-inbound to mozilla-central. a=merge 2018-08-01 12:51:56 +03:00
startupcache
storage Bug 1476009: Remove unnecessary initialization. r=mak 2018-07-16 17:56:02 +01:00
taskcluster Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
testing Bug 1456746 - [wpt] Startup/Shutdown timeout for Firefox needs to be increased to 70s. r=jgraham 2018-08-02 10:29:41 +02:00
third_party Bug 1475197 - Part 2: Revendor Rust dependencies. r=emilio 2018-08-01 10:29:48 +10:00
toolkit Bug 1467796 - part 2: Make autocomplete use new method TextEditor::ReplaceTextAsAction() which replaces all text with specified text r=m_kato 2018-07-03 22:25:52 +09:00
tools Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00
uriloader Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
view
widget Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
xpcom Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
xpfe/appshell Bug 1446940 followup to fix test breakage. 2018-08-01 13:44:05 -04:00
.arcconfig
.clang-format
.clang-format-ignore
.cron.yml Bug 1477021 - Schedule pipfile updates to run once per week. r=sfraser 2018-07-27 15:12:36 +00:00
.eslintignore Backed out changeset 357206a19974 (bug 1474414) for build bustage at mozbuild/test/codecoverage/test_lcov_rewrite.py on a CLOSED TREE 2018-07-27 00:30:29 +03:00
.eslintrc.js
.flake8 Bug 1473951: Add infer to taskcluster and build. r=gps 2018-07-06 17:37:16 +01:00
.gdbinit
.gdbinit_python
.gitignore
.hgignore
.hgtags
.inferconfig
.lldbinit
.mailmap
.taskcluster.yml
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Bug 1435409 - use our own clang rather than the NDK clang to build Android; r=nalexander 2018-07-27 09:52:53 -05:00
Cargo.lock Bug 1475197 - Part 2: Revendor Rust dependencies. r=emilio 2018-08-01 10:29:48 +10:00
Cargo.toml
GNUmakefile
LEGAL
LICENSE
Makefile.in Backed out changeset 7a3882f27aa3 (bug 1341525) for failing win Sa builds on a CLOSED TREE 2018-08-02 02:26:13 +03:00
Pipfile
Pipfile.lock
README.txt
aclocal.m4
build.gradle Bug 1476165 - Part 2: Update Android Gradle plugin to version 3.1.0. r=nalexander,snorp 2018-07-17 13:20:19 +01:00
client.mk
client.py
configure.in
configure.py
gradle.properties
gradlew
mach
moz.build
moz.configure Bug 1476427 - part 1 - move bindgen configure bits to a separate file; r=chmanchester 2018-07-26 17:37:56 -04:00
mozilla-config.h.in
old-configure.in Bug 1476333 - Define the browser chrome URL as BROWSER_CHROME_URL so it can be accessed from AppConstants instead of a pref;r=gps 2018-07-24 08:12:48 -07:00
package-lock.json Bug 1471540 - Update eslint-plugin-react to 7.10.0. r=ahal 2018-07-25 18:09:41 +00:00
package.json Bug 1471540 - Update eslint-plugin-react to 7.10.0. r=ahal 2018-07-25 18:09:41 +00:00
settings.gradle
test.mozbuild

README.txt

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