Open Bug 856312 Opened 11 years ago Updated 1 year ago

Make EditorBase into a skippable class

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

People

(Reporter: mccr8, Unassigned)

Details

This isn't a big deal, but right now the start of the traverse for nsEditor sometimes returns NS_SUCCESS_INTERRUPTED_TRAVERSE.  We could move that logic into CanSkip, remove that from traverse, and turn it into a NS_IMPL_CYCLE_COLLECTION_n class.
I'm not sure what any of this means!  :-)
A skippable object is something which can be removed from the cycle collector's purple buffer if we
can detect that it is certainly alive.
Right now, there's some logic at the start of the TRAVERSE method for nsEditor that detects if the editor is definitely alive.  If it is, then the CC doesn't need to look at it any more.

The "old" way to make use of this information is to return NS_SUCCESS_INTERRUPTED_TRAVERSE from the TRAVERSE method, but the more modern way is to do that reasoning in various CanSkip methods, which are at various earlier points.

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
Summary: Make nsEditor into a skippable class → Make EditorBase into a skippable class
You need to log in before you can comment on or make changes to this bug.