gecko-dev/xpcom
Masayuki Nakano 765e91b497 Bug 1569902 - part 1: Stop using attribute to consider whether a <br> element is an editor bogus node or not r=m_kato,smaug
Editor creates a `<br>` element when it's root element is empty.
Then, it's stored by `TextEditRules::mBogusNode` and used for checking
whether the editor is empty quickly.  However, this `<br>` element has
`mozeditorbogusnode` attribute whose value is `true`.  However, adding or
removing the attribute is not cheap and web apps can refer such illegal
attribute.

Therefore, this patch makes `HTMLBRElement` take a specific flag whether
it's a bogus node or not.  However, this means that this hacky thing will be
exposed outside editor module.  For making what is the bogus node clearer,
this patch calls the such `<br>` elements as "padding `<br>` element for
empty editor".  So, this patch also includes a lot of renaming methods and
variables, and modifying related comments.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 05:44:40 +00:00
..
base Bug 1570019: Verify that nsContentUtils is initialized before calling into it. r=froydnj 2019-07-30 15:51:17 +00:00
build Bug 1529022 - Add a GeckoChildProcessHosts iterator r=jld 2019-06-21 01:33:47 +00:00
components Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-07-08 17:27:36 +00:00
doc
ds Bug 1569902 - part 1: Stop using attribute to consider whether a <br> element is an editor bogus node or not r=m_kato,smaug 2019-08-02 05:44:40 +00:00
glue Bug 1554380 - Fix some issues in mozilla::ReadAhead. r=aklotz 2019-05-29 10:13:28 +00:00
idl-parser Bug 1567739 - Stop using deprecated rust libc integer types in xpidl. r=froydnj 2019-07-23 13:42:44 +00:00
io Bug 1561912, r=michal 2019-07-26 22:58:39 +00:00
libxpt/xptcall
reflect Bug 1566814 - nsXPTCStubBase::Stub##n functions shouldn't be build with stack-protector in nxptcstubs_sparc64_openbsd.cpp r=froydnj 2019-07-24 09:54:10 +00:00
rust Bug 1567739 - Stop using deprecated rust libc integer types in xpidl. r=froydnj 2019-07-23 13:42:44 +00:00
string Bug 1543693 - Add missing nsReadableUtils wrappers for conversions between UTF-8 and Latin1 XPCOM string. r=froydnj 2019-04-12 17:49:11 +00:00
system Bug 1561653 - Drop URIs from remote types we use in telemetry. r=nika 2019-06-28 14:30:18 +00:00
tests Bug 1298602 - split condition in TestExpirationTracker; r=KrisWright 2019-07-31 18:16:35 +00:00
threads Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
windbgdlg Bug 1528651 - Fix some trivial warnings and re-enable warnings-as-errors on Windows in some directories. r=dmajor 2019-02-19 20:42:11 +09:00
xpidl
moz.build
xpcom-config.h.in Bug 1523851 - Remove the dynamic_cast<void*> test. r=froydnj 2019-01-30 14:25:33 +00:00
xpcom-private.h.in