Open Bug 1541806 Opened 6 years ago Updated 3 years ago

Evaluate making the EventBufferer delay actions instead of events

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
5

Tracking

()

Tracking Status
firefox68 --- affected

People

(Reporter: mak, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1532738, we saw how delaying events creates problems to preventDefault(), because the event handler acts too late.
A possibility to solve that better than the status-quo (double call to handleKeyNavigation), may be to delay actions instead of events, so we serve the event immediately but we enqueue the action that should follow. The Bufferer would then keep a list of {event, actionCallback}.
It may not be as straightforward though, because some of the conditions that may apply to the initial event handling, may have changed in the meanwhile, so we could have to double check the conditions before executing an action.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.