fune/testing
Masayuki Nakano 4eb06aa944 Bug 1861603 - Make HTMLEditUtils::IsEmptyNode refer the computed style r=m_kato
Gecko starts referring computed style to consider whether block or inline and
`HTMLEditUtils::IsEmptyNode` is used with them to check a node like these:
https://searchfox.org/mozilla-central/rev/40d51bef58b8e901d6ab4b60dd280f372a0e417d/editor/libeditor/HTMLEditUtils.h#543,554

However, `IsEmptyNode` still checks only the tag names when the caller wants
to treat "list items" and/or "table cells" are visible (not empty).  Therefore,
this mismatch may cause the assertion failure reported in the bug.

From code design point of view, `HTMLEditUtils::IsListItem` and
`HTMLEditUtils::IsTableCell` should refer the computed style.  However, the
former is mostly used for checking the logical structure of HTML, and in the
latter case, we should keep the table structure even if table cells are styled
as inline because browsers do not support table structure recreation except
the Gecko specific editing UI (called inline table editor).  Therefore, it does
not make sense that we would change them.

Instead, we should change `IsEmptyNode` which is used only for visibility check.
So, using computed style is always reasonable.

Note that this patch changes the behavior in some edge cases.  The method always
treat a list item or a table cell which contains a sub-list or a sub table.
However, I would not like to add new `EmptyCheckOption` for it to check the
complicated style check.  Therefore, this patch changes the behavior to treat
them visible if and only if they have another list item or another table cell.
Basically, `<table>` and list elements should have a least one table cell or
one list item.  Therefore, this change should not appear in the web apps in the
wild.

Differential Revision: https://phabricator.services.mozilla.com/D192442
2023-11-09 00:49:07 +00:00
..
awsy Bug 1863186 - Add dedicate command line option for awsy Base Memory Usage tests. r=perftest-reviewers,afinder 2023-11-08 10:45:02 +00:00
condprofile
config Bug 1860830: update win hostutils r=Standard8 2023-11-06 18:49:28 +00:00
crashtest
docs Bug 1839519 - Part 2: Convert reftest JSM to ESM. r=tnikkel 2023-11-08 00:01:58 +00:00
extensions
firefox-ui
geckodriver Bug 1851376 - [geckodriver] Set "services.settings.server" to a dummy URL. r=webdriver-reviewers,Sasha 2023-11-07 16:49:42 +00:00
gtest
jsshell
marionette Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
mochitest Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
modules Bug 1856464 - Include stack in Assert.rejects r=jmaher 2023-10-26 09:59:26 +00:00
mozbase Bug 1862116 - Adjust errorsummary group status to work with mozlog rules for status and expected. r=marco 2023-11-08 17:42:38 +00:00
mozharness Bug 1663700 - Use content process profile data in Android PGO builds. r=nika 2023-11-07 20:57:53 +00:00
perfdocs Bug 1863186 - Add dedicate command line option for awsy Base Memory Usage tests. r=perftest-reviewers,afinder 2023-11-08 10:45:02 +00:00
performance Bug 1853489 - Remove media.autoplay.block-webaudio pref r=alwu,perftest-reviewers 2023-10-30 22:10:37 +00:00
profiles Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
raptor Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
runtimes
specialpowers Bug 1839519 - Part 2: Convert reftest JSM to ESM. r=tnikkel 2023-11-08 00:01:58 +00:00
talos Bug 1855992 - remove about: specialcase from principal validation in BrowserParent, r=nika,necko-reviewers,jesup,perftest-reviewers 2023-11-07 11:34:42 +00:00
tools
tps
web-platform Bug 1861603 - Make HTMLEditUtils::IsEmptyNode refer the computed style r=m_kato 2023-11-09 00:49:07 +00:00
webcompat
webdriver
xpcshell
addtest.py
cppunittest.ini
mach_commands.py Backed out 3 changesets (bug 1857279) for causing try failures with exit status 1 CLOSED TREE 2023-11-06 13:12:25 -05:00
moz.build
parse_build_tests_ccov.py
README.txt
remotecppunittests.py
runcppunittests.py
testinfo.py Bug 1860836 - make testinfo calls more robust. r=gbrown 2023-10-30 20:40:18 +00:00
testsuite-targets.mk Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00

Common testing tools for mozilla codebase projects, test suite definitions
for automated test runs, tests that don't fit anywhere else, and other fun
stuff