See bug 543494 comment 10.
OK. This mutation observer was added in bug 335856. It looks to me like this code is wholly unnecessary for the case when the editor is initialized with a given root. Peter, is that correct? If not, what parts of it are needed? Certainly in the text control case this code never gets triggered in a useful way!
Ehsan said he can take this, but Peter's feedback here would still be really nice.
Yeah, afaics that should be fine.
So bug 545775 part 4 moved the observers from nsEditor to nsHTMLEditor. Is this bug still relevant?
(In reply to Aryeh Gregor from comment #4)
> So bug 545775 part 4 moved the observers from nsEditor to nsHTMLEditor. Is
> this bug still relevant?