gecko-dev/testing
Masayuki Nakano c5b2a589bd Bug 1766355 - part 1: Add `MoveNodeTransaction` to handle delete node and insert node in a transaction class instance r=m_kato
Creating both `DeleteNodeTransaction` and `InsertNodeTransaction` wastes
memory.  They should be done in an instance instead.

Fortunately, no edit action listener checks whether the deleted node is still
in the composed document or not, etc.  Therefore, we can simply notify them of
both deletion and insertion which were done in
`EditorBase::InsertNodeWithTransaction` and
`EditorBase::DeleteNodeWithTransaction`.  Note that previously, the range
updater needs to ignore the notifications from them while the node is being
moved.  However, it does not require anymore.  Therefore, this patch makes it
stop locking, and that would fix minor problem in the case of legacy mutation
event listeners run another edit action.

On the other hand, this changes some edge cases handling of
`MoveNodeWithTransaction` which are detected by the WPT.  According to the
previous result of applying this patch, `nsINode::InsertBefore` fails and that
leads some errors at updating the changed range.  I guess that the cause is
that there is some bugs at updating insertion point after deleting the node from
the DOM tree around here:
https://searchfox.org/mozilla-central/rev/0ffae75b690219858e5a45a39f8759a8aee7b9a2/editor/libeditor/HTMLEditor.cpp#5058-5071

However, it's safely fixed by the new code which does not remove the node from
the DOM tree explicitly.  So, I think that it's safe to accept this behavior
change for web apps in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D146397
2022-05-20 08:28:08 +00:00
..
awsy Bug 1767048 - Disable negative heap-unclassified assertion for frequent failure in central-as-beta simulations r=perftest-reviewers,sparky DONTBUILD 2022-05-12 12:07:35 +00:00
condprofile Bug 1769098 - initial work to allow taskcluster/mozbase/mozharness to support conditioned profiles. r=ahal 2022-05-16 19:11:46 +00:00
config Bug 1769655 - do not install condprof package on osx. r=aryx 2022-05-18 17:53:41 +00:00
crashtest Bug 1764222 - Use NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS for piping classes r=smaug 2022-04-28 14:27:08 +00:00
docs Bug 1765167 - Part 9: Stop using Cu.import in testing/. r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,mossop 2022-05-03 06:32:32 +00:00
extensions
firefox-ui Bug 1765167 - Part 9: Stop using Cu.import in testing/. r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,mossop 2022-05-03 06:32:32 +00:00
fxrecord/perfdocs
geckodriver Bug 1766125 - Allow setting profile creation directory for geckodriver, r=webdriver-reviewers,whimboo 2022-05-18 13:26:08 +00:00
gtest Bug 1761511 - Part 4: Remove the previous vendoring of gtest, r=ahal 2022-04-14 02:09:21 +00:00
jsshell
marionette Bug 1768871 - Remove Marionette test js/xpconnect/tests/marionette/test_preloader_telemetry.py r=webdriver-reviewers,dthayer,jdescottes 2022-05-17 21:51:22 +00:00
mochitest Bug 1769794 - allow for android development to run tests in fission mode. r=gbrown 2022-05-18 14:42:21 +00:00
modules Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs 2022-05-17 20:24:19 +00:00
mozbase Bug 1766125 - Allow setting profile creation directory for geckodriver, r=webdriver-reviewers,whimboo 2022-05-18 13:26:08 +00:00
mozharness Bug 1769952 - Fix running raptor on a Win10-64 VM r=sparky 2022-05-18 14:14:28 +00:00
perfdocs Bug 1766009 - Create WPT chrome job r=perftest-reviewers,sparky,davehunt 2022-05-04 17:10:39 +00:00
performance Bug 1766009 - Create WPT chrome job r=perftest-reviewers,sparky,davehunt 2022-05-04 17:10:39 +00:00
profiles Backed out 3 changesets (bug 1758745, bug 1758740, bug 1762462) for causing mochitest failures on test_storagePermissionsAccept.html CLOSED TREE 2022-05-10 20:12:45 -04:00
raptor Bug 1762991 - fix raptor/btime to have the fission attribute. r=sparky,perftest-reviewers 2022-05-12 19:14:09 +00:00
runtimes Bug 1668219 - [devtools] Remove now unused devtools/shared/performance folder. r=julienw. 2022-05-06 17:16:29 +00:00
specialpowers Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs 2022-05-17 20:24:19 +00:00
talos Bug 1765093 - Add perf tests for SVG text based on the testcase here. r=perftest-reviewers,emilio,sparky 2022-05-07 13:12:00 +00:00
tools Bug 1691122 - Remove subject common name fallback support in CertVerifier. r=keeler,necko-reviewers,kershaw 2022-04-28 19:48:06 +00:00
tps
web-platform Bug 1766355 - part 1: Add `MoveNodeTransaction` to handle delete node and insert node in a transaction class instance r=m_kato 2022-05-20 08:28:08 +00:00
webcompat
webdriver Bug 1723202 - [webdriver] Release version 0.45.0. r=webdriver-reviewers,jgraham 2022-04-06 08:58:36 +00:00
xpcshell Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs 2022-05-17 20:24:19 +00:00
README.txt
addtest.py
cppunittest.ini Bug 1758654 - avoid stack overflow by running on a fiber r=gsvelto 2022-04-01 21:20:51 +00:00
mach_commands.py Bug 1763489 - add failure report to test-info. r=gbrown 2022-04-08 14:35:33 +00:00
moz.build
parse_build_tests_ccov.py Bug 1764564 - Remove the code to ignore the Windows SDK directory from coverage. r=marco 2022-04-16 21:49:51 +00:00
remotecppunittests.py
runcppunittests.py
testinfo.py
testsuite-targets.mk

README.txt

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