Open Bug 1710784 (enqueue-editing-mutation-events) Opened 5 years ago Updated 3 months ago

Enqueue DOM event dispatching between `beforeinput` event and `input` event

Categories

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

enhancement

Tracking

()

ASSIGNED

People

(Reporter: masayuki, Assigned: masayuki)

References

(Depends on 2 open bugs, Blocks 2 open bugs)

Details

Both Blink and WebKit enqueue dispatching events between beforeinput event and input event. We should follow it because:

  • Web apps get more similar behavior as Blink/WebKit than now
  • beforeinput allows web apps to catch to change the DOM tree without legacy mutation events
  • It makes editor code simpler
  • It might improve the performance of editor

Of course, even if we don't dispatch beforeinput event for conforming to the spec, we should enqueue them until dispatching input event.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Alias: enqueue-editing-mutation-events

Marking this as a blocker of crash bugs and assertion failure bugs which are caused by event listeners which run while editor handles something.

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