Open Bug 1952620 Opened 1 year ago Updated 8 months ago

Get rid of the DOM tree checks after touching the DOM from the editor module once the legacy DOM mutation events are completely disabled

Categories

(Core :: DOM: Editor, task)

task

Tracking

()

People

(Reporter: masayuki, Unassigned)

References

(Depends on 1 open bug)

Details

We have tons of the DOM tree check after touching the DOM tree from the editor module to avoid to reach the worst scenario like a crash, hang and/or security issue. Once bug 769207 is shipped in the release channel (even if there are some allowed web apps which can work with the mutation events within allowed list), we can get rid of the unnecessary checks for the normal web apps (I mean non-malicious web apps).

I think, at least, we can simply get rid of the checks which return NS_ERROR_EDITOR_UNEXPECTED_DOM_TREE. Additionally, we could get rid of Destroyed() checks too. However, for the latter, I guess some are still required for tricky cases.

You need to log in before you can comment on or make changes to this bug.