Unnecessary `<br>` elements are inserted once enabling new join/split node direction
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox112 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 external file)
TEST-UNEXPECTED-FAIL | /editing/run/delete.html?6001-7000 | [["delete",""]] "<div>abc </div> <div> []def</div>" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<div>abcdef</div>" but got "<div>abcdef</div> "
TEST-UNEXPECTED-FAIL | /editing/run/delete.html?5001-6000 | [["defaultparagraphseparator","div"],["delete",""]] "<div><p>foo[bar</div><p>baz]quz" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<div><p>fooquz</p></div>" but got "<div><p>fooquz</p></div><br>"
TEST-UNEXPECTED-FAIL | /editing/run/delete.html?5001-6000 | [["defaultparagraphseparator","p"],["delete",""]] "<div><p>foo[bar</div><p>baz]quz" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<div><p>fooquz</p></div>" but got "<div><p>fooquz</p></div><br>"
TEST-UNEXPECTED-FAIL | /editing/run/delete.html?5001-6000 | [["defaultparagraphseparator","div"],["delete",""]] "<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<p>fooquz</p><blockquote><p>qoz</p></blockquote>" but got "<p>fooquz</p><blockquote><br><p>qoz</p></blockquote>"
TEST-UNEXPECTED-FAIL | /editing/run/delete.html?5001-6000 | [["defaultparagraphseparator","p"],["delete",""]] "<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<p>fooquz</p><blockquote><p>qoz</p></blockquote>" but got "<p>fooquz</p><blockquote><br><p>qoz</p></blockquote>"
TEST-UNEXPECTED-FAIL | /editing/run/forwarddelete.html?4001-5000 | [["defaultparagraphseparator","div"],["forwarddelete",""]] "<div><p>foo[bar</div><p>baz]quz" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<div><p>fooquz</p></div>" but got "<div><p>fooquz</p></div><br>"
TEST-UNEXPECTED-FAIL | /editing/run/forwarddelete.html?5001-6000 | [["defaultparagraphseparator","p"],["forwarddelete",""]] "<div><p>foo[bar</div><p>baz]quz" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<div><p>fooquz</p></div>" but got "<div><p>fooquz</p></div><br>"
TEST-UNEXPECTED-FAIL | /editing/run/forwarddelete.html?5001-6000 | [["defaultparagraphseparator","div"],["forwarddelete",""]] "<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<p>fooquz</p><blockquote><p>qoz</p></blockquote>" but got "<p>fooquz</p><blockquote><br><p>qoz</p></blockquote>"
TEST-UNEXPECTED-FAIL | /editing/run/forwarddelete.html?5001-6000 | [["defaultparagraphseparator","p"],["forwarddelete",""]] "<p>foo[bar<blockquote><p>baz]quz<p>qoz</blockquote" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<p>fooquz</p><blockquote><p>qoz</p></blockquote>" but got "<p>fooquz</p><blockquote><br><p>qoz</p></blockquote>"
| Assignee | ||
Comment 1•3 years ago
|
||
This is reproducible only in the new mode, but this failure detects wrong validation of DOM points after joining 2 nodes even in the legacy mode.
| Assignee | ||
Comment 2•3 years ago
|
||
In the legacy mode, right node is not removed from the DOM tree, therefore,
this bug was hidden. However, after enabling the new mode, the point will
be out of the document. Therefore, the check will cause
NS_ERROR_EDITOR_UNEXPECTED_DOM_TREE error and the joining code stops handling
the deletion.
Comment 6•3 years ago
|
||
| bugherder | ||
Comment 7•3 years ago
|
||
(In reply to Pulsebot from comment #5)
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/81040f1134e8
MakeWhiteSpaceVisibilityKeeperverify tracking point of start of right
joining node after flushing the tracker r=m_kato
== Change summary for alert #37657 (as of Wed, 15 Mar 2023 17:30:42 GMT) ==
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 6% | tsvg_static | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 52.17 -> 49.21 |
| 4% | tsvg_static | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 52.10 -> 49.79 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=37657
| Assignee | ||
Comment 8•3 years ago
|
||
Odd. Improved by the patch means that the web apps overriding builtin editor's behavior and editor stops aborting in the cases. However, according to the test summary, it just check the SVG performance, so it does not make sense.
Description
•