forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1467794 - Split TextEditor::DeleteSelectionAsAction() to itself a…
…nd 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
- Loading branch information
1 parent
d336533
commit 44f041a
Showing
11 changed files
with
82 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters