gecko-dev/editor/libeditor/crashtests
Masayuki Nakano b327dea259 Bug 1411345 - HTMLEditRules::GetHighestInlineParent() shouldn't return editing host even when it's the highest inline parent of aNode r=m_kato
HTMLEditRules::BustUpInlinesAtRangeEndpoints() tries to split all inline nodes
at range start and range end.  It uses EditorBase::SplitNodeDeep() to split
the nodes and HTMLEditRules::GetHighestInlineParent() to retrieve the highest
inline parent of them.

Currently, HTMLEditRules::GetHighestInlineParent() may return editing host or
ancestor of it if active editing host is not block.  Then, it may cause
splitting editing host or its parents and following methods of HTMLEditRules
will fail to modify the nodes created outside the editing host.

So, HTMLEditRules::GetHighestInlineParent() should return only one of the
descendants of active editing host.

Unfortunately, even if just adding the test case as a crash test, I cannot
reproduce the crash with automated tests.  Therefore, this patch doesn't
include any automated tests.

And this patch changes a crash test, 1402196.html, which expects that an inline
editing host is split by execCommand("insertOrderedList").  However, this patch
fixes this wrong behavior.  Therefore, this patch changes the event target of
event listener from <p> inside the editing host to the editing host itself.

MozReview-Commit-ID: 8i5ci1fcrDd

--HG--
extra : rebase_source : 572a7b22550a38ca71c954f62eefa695addd53c2
2017-10-31 01:14:58 +09:00
..
336081-1.xhtml Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug 2017-07-25 09:56:02 +08:00
336104.html
382527-1.html Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug 2017-07-25 09:56:02 +08:00
382778-1.html Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug 2017-07-25 09:56:02 +08:00
402172-1.html
403965-1.xhtml Bug 1055286 - Flatten editor/libeditor/text to editor/libeditor; r=poiru 2014-08-18 20:59:37 -04:00
407074-1.html
407079-1.html
407256-1.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
407277-1.html
414178-1.html
418923-1.html
420439.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
428489-1.html
429586-1.html Bug 429586 - Remove assertion annotations that are no longer needed and add crashtest. 2015-10-30 19:41:18 -04:00
430624-1.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
431086-1.xhtml
448329-1.html
448329-2.html
448329-3.html
456727-1.html
456727-2.html
459613-iframe.html
459613.html
467647-1.html
475132-1.xhtml
499844-1.html
503709-1.xhtml
513375-1.xhtml
535632-1.xhtml
574558-1.xhtml
580151-1.xhtml Bug 1055286 - Flatten editor/libeditor/text to editor/libeditor; r=poiru 2014-08-18 20:59:37 -04:00
582138-1.xhtml
612565-1.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
615015-1.html
615450-1.html
633709.xhtml
636074-1.html
639736-1.xhtml
643786-1.html
650572-1.html Bug 650572 - Add crashtest. 2015-10-30 19:41:17 -04:00
667321-1.html Bug 667321 - Add crashtest. 2015-10-25 00:06:23 -04:00
682650-1.html
713427-1.html
713427-2.xhtml Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
716456-1.html
759748.html
761861.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
762183.html
766305.html
766360.html
766387.html
766413.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
766795.html
766845.xhtml
767169.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
768748.html
768765.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
769008-1.html
769967.xhtml
771749.html
772282.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
776323.html
793866.html
1057677.html Bug 1057677 - Crash in nsHTMLEditor::DoInsertHTMLWithContext; r=ehsan 2014-08-26 16:13:22 +03:00
1128787.html Bug 1128787 part.1 Add test r=ehsan 2015-04-21 15:27:09 +09:00
1134545.html Bug 1134545 - Insufficient null check. r=ehsan 2015-03-25 13:52:56 -04:00
1158452.html Bug 1158452. Pass in the right node when messing with font sizes in editor. r=ehsan 2015-04-27 15:29:22 -04:00
1158651.html Bug 1158651 - Correctly ignore non-editable nodes in nsHTMLEditRules::GetParagraphFormatNodes; r=roc 2015-04-27 21:13:10 -04:00
1244894.xhtml Bug 1244894: Steal the failed nsresult when bailing early. r=bz 2016-02-05 10:12:25 -08:00
1264921.html Bug 1264921 - Crashtest. 2016-11-21 00:26:37 +01:00
1272490.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
1274050.html Bug 1274050 - Add crashtest. r=me 2017-10-12 22:41:14 -04:00
1317704.html Bug 1317704 - Part 2. Add test. r=masayuki 2016-12-15 15:02:10 +09:00
1317718.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
1324505.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
1343918.html Bug 1343918 - Add crash test for document.execCommand('italic'). r=masayuki 2017-06-20 14:46:28 +09:00
1344097.html Bug 1344097 - Add crashtest. r=me 2017-10-20 08:36:12 -04:00
1345015.html Bug 1345015 - Part 3. Add crash test. r=masayuki 2017-06-19 16:52:05 +09:00
1348851.html Bug 1348851 - Part 2. Add crash test. r=masayuki 2017-03-21 14:36:52 +09:00
1350772.html Bug 1350772 - Part 2. Add test. r=masayuki 2017-03-27 14:41:21 +09:00
1364133.html Bug 1364133 - Part 2. Add test. r=masayuki 2017-10-11 17:59:02 +09:00
1366176.html Bug 1366176 part 2 - Crashtest. 2017-05-23 19:09:26 +02:00
1375131.html Bug 1375131 - Part 2. Add crash test. r=masayuki 2017-06-23 16:45:50 +09:00
1381541.html Bug 1381541 - queryCommandState should consider that parent node of selection is null. r=masayuki 2017-08-18 14:48:39 +09:00
1383747.html Bug 1383747 - Add crashtest. r=me 2017-10-11 19:54:08 -04:00
1383755.html Bug 1383755 - Part 2. Add crash test for object resizer. r=masayuki 2017-07-27 18:21:27 +09:00
1383763.html Bug 1383763 - Add crashtest. r=me 2017-10-11 19:54:09 -04:00
1384161.html Bug 1384161 - Add crashtest. r=me 2017-10-11 19:54:09 -04:00
1388075.html Bug 1388075 - Add crashtest. r=me 2017-10-11 11:52:40 -04:00
1393171.html Bug 1393171 - Add crashtest. r=me 2017-10-11 19:54:10 -04:00
1402196.html Bug 1411345 - HTMLEditRules::GetHighestInlineParent() shouldn't return editing host even when it's the highest inline parent of aNode r=m_kato 2017-10-31 01:14:58 +09:00
1402469.html Bug 1402469 - Part 2. Add crash test. r=masayuki 2017-09-25 14:11:29 +09:00
1402904.html Bug 1402904 - Part 2. Add crash tests. r=masayuki 2017-10-05 14:23:12 +09:00
1405747.html Bug 1402904 - Part 2. Add crash tests. r=masayuki 2017-10-05 14:23:12 +09:00
1408170.html Bug 1408170 - Set child correctly in HTMLEditRules::GetPromotedPoint(); r=masayuki 2017-10-13 02:23:12 -04:00
crashtests.list Bug 1402196 - Part 2. Add crashtest. r=masayuki 2017-10-23 12:24:04 +09:00