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
Masayuki Nakano a50a0700d4 Bug 1530649 - Improve composition string handling which ends with whitespaces r=m_kato
If insertion string ends with ASCII whitespace and there is no following
content in the block, `HTMLEditRules::AdjustWhitespaces()` needs to insert
`<br>` element.  It's called only by `HTMLEditRules::AfterEditInner()` and
that does only simple things with `WSRunObject`.  Therefore, this moves the
code into `AfterEditInner()`.

For making it adjust the whitespaces, `HTMLEditRules::WillInsertText()` needs
to notify `AfterEditInner()` of dirty range with `mDocChangeRange`.  Therefore,
this patch makes it set `mDocChangeRange` manually after inserting composition
string.

On the other hand, there is another bug.  `WSRunObject` was designed to treat
only inserting text for `WSRunObject::InsertText()`.  I.e., not designed to
treat replacing existing composition string with new string.  Therefore,
`WSRunObject::InsertText()` adjusts whitespaces only around start of
composition string.  Therefore, if composition string ends with an ASCII
whitespace, it's not replaced with NBSP and that causes:
- failing `WSRunObject::AdjustWhitespaces()` inserts `<br>` element at
  `AfterEditInner()` of committing composition.
- then, next composition's first `WSRunObject::InsertText()` removes the
  last whitespace due to not followed by `<br>` nor any other content.
Therefore, this patch makes `WSRunObject` takes 2 DOM points to be able to
treat replaced range.

In strictly speaking, the latter change require more changes and tests for
supporting replacement with any other methods.  However, it's risky and out
of scope of this bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 05:28:38 +00:00
.cargo Bug 1529117 - Bump serde and serde_derive to branch from 1.0.88. r=jrmuizel 2019-04-04 15:41:57 +00:00
.vscode Bug 1514820 - Recommend a VSCode extension for IDL language highlighting r=jya 2018-12-18 19:43:33 +00:00
accessible Bug 760345 - Remove the last usage of lossy currentcolor. r=heycam 2019-04-06 17:47:58 +00:00
browser Bug 1539283 - Use less general wildcard patterns when packaging dlls in an artifact build. r=nalexander 2019-04-08 23:52:18 +00:00
build Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout 2019-04-08 22:23:03 +03:00
caps Bug 1517797 - Rewrite net_IsValidIPv6Addr in Rust r=valentin,froydnj 2019-04-08 06:33:04 +00:00
chrome Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug 2019-04-01 22:42:34 +00:00
config Bug 1540079 - Firefox NSPR build on Solaris SPARC need to include os_SunOS_sparcv9.s r=glandium 2019-04-05 06:43:52 +00:00
db Bug 1530749 - Upgrade to SQLite 3.27.2. r=mak 2019-02-26 23:21:05 +00:00
devtools Bug 1534984 - Add a button for toggling print styles simulation in the Rule View toolbar r=gl 2019-04-08 20:22:12 +00:00
docshell Bug 1542778 - Part 2: Fix clang-format fallout for DocShell and LoadContext, r=Ehsan 2019-04-08 20:30:37 +00:00
dom Bug 1530649 - Improve composition string handling which ends with whitespaces r=m_kato 2019-04-09 05:28:38 +00:00
editor Bug 1530649 - Improve composition string handling which ends with whitespaces r=m_kato 2019-04-09 05:28:38 +00:00
extensions Bug 1513799 - Remove windows-1252 as a Japanese detection outcome. r=emk. 2019-04-08 14:43:26 +03:00
gfx Bug 1538969 - Report nsDisplayVideo as being opaque when possible so that we can occlude content behind it. r=jya 2019-04-09 03:16:39 +00: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 1523969 part 9 - Move method definition inline comments to new line in 'hal/'. r=gsvelto 2019-02-25 16:07:35 -06:00
image Bug 1318091 - Disable failing android gtests; r=bc 2019-04-08 20:58:21 +00:00
intl Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
ipc Bug 1541130: Add XRE_GetChildProcBinPathType to nsXULAppAPI.h; r=froydnj,jld on a CLOSED TREE 2019-04-09 00:45:24 +03:00
js Bug 1542910 - Make JS::CompileFunction return a JSFunction* directly, instead of by outparam for no good reason. r=arai 2019-04-09 03:49:58 +00:00
layout Bug 1538969 - Report nsDisplayVideo as being opaque when possible so that we can occlude content behind it. r=jya 2019-04-09 03:16:39 +00:00
media Bug 1542829 - Backport an upstream libpng patch. r=aosmond 2019-04-08 19:00:31 +00:00
memory Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
mfbt Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
mobile Bug 1542440 - Recycle sample directly rather than through CodecProxy. r=jya 2019-04-08 09:16:20 +00:00
modules Backed out 2 changesets (bug 1513445) for causing xpc perma fails CLOSED TREE 2019-04-09 05:04:45 +03:00
mozglue Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
netwerk Bug 1318091 - Disable failing android gtests; r=bc 2019-04-08 20:58:21 +00:00
nsprpub Bug 1526010, NSPR 4.21 RTM, r=me 2019-03-07 11:16:36 +01:00
other-licenses Bug 1540142 - Avoid SIGBUS on SPARC systems due CityHash64 r=froydnj 2019-04-02 17:27:56 +00:00
parser Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
python Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout 2019-04-08 22:23:03 +03:00
remote bug 1541834: remote: drop max-len lint rule; r=ochameau 2019-04-05 11:46:08 +00:00
security Bug 1542347 - eliminate needless string flattening in OSReauthenticator; r=keeler 2019-04-08 16:26:10 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2019-04-08 12:41:00 +00:00
servo Bug 1542762 - Use an explicit stack to measure rule tree memory usage. r=heycam 2019-04-09 00:11:03 +00:00
startupcache Bug 1353013 - create preloaded newtab browser from an idle task, only in top window(s), r=dthayer 2019-03-19 17:29:48 +00:00
storage Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
taskcluster Bug 1540907 - Bump MinGW version to pick up MFVideoTransferMatrix constants r=froydnj 2019-04-08 19:14:03 +00:00
testing Backed out changeset e04ef5171459 (bug 1539006) for permafailing test_worker_observer.html CLOSED TREE 2019-04-09 06:32:40 +03:00
third_party Bug 1540894 - Vendor Dogear v0.2.3. r=tcsc 2019-04-05 20:44:18 +00:00
toolkit Bug 1542888 - avoid Rkv::Manager call to std::fs::canonicalize r=lina 2019-04-09 03:57:18 +00:00
tools Bug 1318091 - Disable failing android gtests; r=bc 2019-04-08 20:58:21 +00:00
uriloader Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
view Bug 1542407 - Make nsIFrame use mozilla::PresShell directly rather than via nsIPresShell r=emilio 2019-04-06 06:02:28 +00:00
widget Bug 1530649 - Improve composition string handling which ends with whitespaces r=m_kato 2019-04-09 05:28:38 +00:00
xpcom Bug 1541130: Add XRE_GetChildProcBinPathType to nsXULAppAPI.h; r=froydnj,jld on a CLOSED TREE 2019-04-09 00:45:24 +03:00
xpfe/appshell Backed out 2 changesets (bug 1540170) for xpcshell failures at test_sanitizer.js. CLOSED TREE 2019-04-05 06:23:23 +03:00
.arcconfig
.clang-format Bug 1542146 - Use the new option StatementMacros from clang-format-8 r=andi 2019-04-05 21:41:57 +00:00
.clang-format-ignore Bug 1533481 - Part 9: Update Gecko to Unicode 12. r=jfkthame! 2019-04-04 12:46:18 +03:00
.cron.yml Bug 1538560 - disable cron job to run mochitest valgrind tasks because they permafail r=gbrown 2019-04-01 15:08:44 +00:00
.eslintignore Bug 1536589 - Tidy up a few items .eslintignore to make it clearer what needs fixing and what doesn't. r=mossop 2019-04-08 20:06:13 +00:00
.eslintrc.js Bug 1541024 - parser/ automated ESLint no-throw-literal fixes. r=hsivonen 2019-04-05 11:31:01 +00:00
.flake8 Bug 1541086: Remove the embedding code and update the bug components for widget::headless. r=myk r=bdahl 2019-04-02 09:07:54 -07:00
.gdbinit
.gdbinit_python
.git-blame-ignore-revs No bug - Ignore bug 1016240 in blame/annotate. r=MattN 2019-04-04 14:56:20 -04:00
.gitignore Bug 1541086: Remove the embedding code and update the bug components for widget::headless. r=myk r=bdahl 2019-04-02 09:07:54 -07:00
.hg-annotate-ignore-revs No bug - Ignore bug 1016240 in blame/annotate. r=MattN 2019-04-04 14:56:20 -04: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 1541086: Remove the embedding code and update the bug components for widget::headless. r=myk r=bdahl 2019-04-02 09:07:54 -07:00
.hgtags No bug - Tagging mozilla-central 9421b477d67cfc4c9e03350cd554a9e6acc7f435 with FIREFOX_NIGHTLY_67_END a=release DONTBUILD CLOSED TREE 2019-03-18 10:56:58 +00:00
.lldbinit
.mailmap
.taskcluster.yml Bug 1488313: [taskgraph] Don't notify sherrifs on cron decision task failures on try; r=dustin 2019-03-27 19:38:05 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py Bug 1522135 - Make .ycm_extra_conf.py work with python3. r=jgraham 2019-01-24 13:51:28 +01: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
build.gradle Bug 1535013: [geckoview] Add default impls to all interfaces. r=snorp 2019-03-14 16:48:57 +00:00
Cargo.lock Bug 1542888 - avoid Rkv::Manager call to std::fs::canonicalize r=lina 2019-04-09 03:57:18 +00:00
Cargo.toml Bug 1529117 - Bump serde and serde_derive to branch from 1.0.88. r=jrmuizel 2019-04-04 15:41:57 +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 Bug 1533481 - Part 10: Updating ICU requires a clobber. r=jwalden! 2019-04-04 12:46:32 +03:00
configure.in
configure.py Bug 1528241 - Add a trace mode to python configure that logs internal values. r=chmanchester 2019-02-20 07:46:22 +09:00
GNUmakefile
gradle.properties Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander 2019-02-14 18:21:13 +00:00
gradlew
gradlew.bat Bug 1527796 - Part 3. Use gradlew.bat on Windows. r=nalexander 2019-02-26 11:06:12 +09:00
LEGAL
LICENSE
mach
Makefile.in Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout 2019-04-08 22:23:03 +03: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 1532695 - Include target.gtest.tests.tar.gz in android builds; r=bc 2019-04-08 22:02:45 +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 1539227 - land NSS 67c41e385581 UPGRADE_NSS_RELEASE, r=me 2019-03-26 18:48:46 +00:00
package-lock.json Bug 1536589 - Update ESLint and associated modules. r=mossop 2019-04-08 20:06:38 +00:00
package.json Bug 1536589 - Update ESLint and associated modules. r=mossop 2019-04-08 20:06:38 +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 Bug 1527796 - Part 5. Add python.exe path of mozilla-build to call mach command from gradle. r=nalexander 2019-03-29 18:11:09 +09:00
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.