Page MenuHomePhabricator

Bug 1660378 - part 8: Make `HTMLEditor::IsSimpleModifiableNode()` take `Element&` instead of `nsIContent*` r=m_kato!
ClosedPublic

Authored by masayuki on Aug 24 2020, 1:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2026, 4:03 AM
Unknown Object (File)
Aug 11 2026, 12:50 PM
Unknown Object (File)
Jul 8 2026, 12:05 AM
Unknown Object (File)
Jul 7 2026, 10:23 PM
Unknown Object (File)
Jul 7 2026, 8:18 PM
Unknown Object (File)
Jul 7 2026, 7:18 PM
Unknown Object (File)
Jul 7 2026, 5:56 PM
Unknown Object (File)
Jun 13 2026, 5:03 AM
Subscribers
None

Details

Summary

Although it starts to return error if it causes destroying the editor, but
it should not occur because it modifies new and orphan node and it shouldn't
kick any mutation event listeners. Therefore, this patch makes the callers
handle error as-is rather than ignoring errors except
NS_ERROR_EDITOR_DESTROYED.

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
masayuki edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Aug 25 2020, 4:18 AM