Closed Bug 1630168 Opened 1 year ago Closed 1 year ago

Suppress adding same runners for handling content change in HTMLEditor

Categories

(Core :: DOM: Editor, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

When HTMLEditor is notified of content changes, it may add a runnable method HTMLEditor::OnModifyDocument or HTMLEditor::NotifyRootChanged for each notification. However, their code do not need running twice nor more. This could cause performance issues on complicated web apps which sets innerHTML at every key press.

When HTMLEditor is notified of content changes, it may add a runnable method
HTMLEditor::OnModifyDocument or HTMLEditor::NotifyRootChanged for each
notification. However, their code do not need running twice nor more. This
could cause performance issues on complicated web apps which sets innerHTML
at every key press.

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/cb5e78f6e668
Make `HTMLEditor` stop adding same runnable method into the queue r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.