Commit 0828391
Make
The logic before getting editing host in them are correct, but both
`nsIContent::GetEditingHost()` and `HTMLEditor::ComputeEditingHostInternal()`
return `Document::GetBody()` result if it's in the design mode.
For now, we should just add nullptr checks into the methods since they are
required only for some specific web apps.
Differential Revision: https://phabricator.services.mozilla.com/D234442
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1941827
gecko-commit: a177fb513de65e6af5daf405f96baced5702e3fa
gecko-reviewers: m_katoDocumentModifiedEvent and HTMLEditor::OnModifyDocument assume there is no editing host1 parent c9cae21 commit 0828391
File tree
1 file changed
+16
-0
lines changed- editing/crashtests
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments