Closed Bug 1630168 Opened 4 years ago Closed 4 years 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: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: