gecko-dev/editor/libeditor/crashtests
Masayuki Nakano 98a833407e Bug 1467794 - Split TextEditor::DeleteSelectionAsAction() to itself and TextEditor::DeleteSelectionAsSubAction() r=m_kato
TextEditor::DeleteSelectionAsAction() is called even if it's a part of edit
action.  For example, it's called to prepare for inserting text.

For bug 1465702, editor itself and edit rules classes should not call
public DeleteSelectionAsAction() directly.  Therefore, this patch creates
DeleteSelectionAsSubAction() for internal use.

Note that this patch adds NS_ASSERTION() to detect wrong caller.  However,
it cannot distinguish if the call is valid, for example, it's allowed to
call DeleteSelectionAsSelection() even if it's handling an edit action but
the method is called via mutation event listener.  So, we need to allow
some assertions with some tests.  But unfortunately, 1405747.html uses
mutation event listener too many times (about 1,000 times) and the number
of assertion isn't stable.  Therefore, this patch makes the test stop using
the mutation event listener 2nd time since I can reproduce the crash with
ESR 52 at the 2nd time.

MozReview-Commit-ID: 1TWaypmnoCC

--HG--
extra : rebase_source : a6a4fb1cbcaf2ab6f10c5f3e7168a6bc0fcb02ed
2018-06-29 20:16:50 +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
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
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
667321-1.html
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
1128787.html
1134545.html
1158452.html
1158651.html
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
1402526.html Bug 1402526 - Add crashtest. r=me a=test-only 2018-01-15 14:27:45 +09:00
1402904.html Bug 1402904 - Part 2. Add crash tests. r=masayuki 2017-10-05 14:23:12 +09:00
1405747.html Bug 1467794 - Split TextEditor::DeleteSelectionAsAction() to itself and TextEditor::DeleteSelectionAsSubAction() r=m_kato 2018-06-29 20:16:50 +09:00
1405897.html Bug 1405897 - Move assertion before setting resizer attribute. r=masayuki 2018-06-29 04:47:21 +00:00
1408170.html Bug 1408170 - Set child correctly in HTMLEditRules::GetPromotedPoint(); r=masayuki 2017-10-13 02:23:12 -04:00
1414581.html Bug 1414581 - Part 2. Add crashtest. r=masayuki 2017-11-06 17:06:09 +09:00
1415231.html Bug 1415231 - Add crash tests for a regression of bug 1406482 which has been fixed by bug 1415509 r=m_kato 2017-11-10 10:58:33 +09:00
1423767.html Bug 1423767 - Splitting node might be orphan. r=masayuki 2018-05-16 16:54:20 +09:00
1423776.html Bug 1423776 - Return error when splitted node might be orphan. r=masayuki 2018-06-04 16:31:38 +09:00
1424450.html Bug 1424450 - Don't set selection on ClearStyle. r=masayuki 2018-04-18 16:13:24 +09:00
1425091.html Bug 1425091 - Part 2. Add crashtest. r=masayuki 2017-12-15 10:51:53 -06:00
1443664.html Bug 1443664 - Form control might not have non-chrome only content. r=smaug 2018-03-20 16:22:39 +09:00
1444630.html Bug 1444630 - Don't update dictionary after calling UninitSpellChecker. r=masayuki 2018-03-20 14:27:06 +09:00
1446451.html Bug 1446451: GetPropertyValue can indeed not return an integer if the node is not displayed. r=masayuki 2018-03-16 18:07:33 +01:00
crashtests.list Bug 1467794 - Split TextEditor::DeleteSelectionAsAction() to itself and TextEditor::DeleteSelectionAsSubAction() r=m_kato 2018-06-29 20:16:50 +09:00