Open Bug 1904859 Opened 8 months ago Updated 2 months ago

Wait for events dispatched in the content process and assess performance

Categories

(Remote Protocol :: Agent, task, P3)

task
Points:
8

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

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

Details

(Whiteboard: [webdriver:m15])

To rule out race conditions when dispatching events from an action chain, especially when multiple actions run in parallel within a tick, we need to ensure that the required events are indeed dispatched. Event listeners must be installed in the content process to wait for the events to be processed by the browser and the related events to be emitted before returning to the parent process for further processing of the action chain.

Further we should try to minimize the performance degradation caused by the additional step of waiting for the event to be dispatched. We should compare the results with Chrome's timings to ensure the impact is kept as low as possible.

Blocks: 1848957
Blocks: 1797215
Depends on: 1904671
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Whiteboard: [webdriver:m12] → [webdriver:m13]
Blocks: 1926576
No longer blocks: 1926576

This work will be needed once we emit widget events. With just processing actions in the parent process but still synthesizing events in the content process we basically have no change in how the events are dispatched. Because we do not wait for the event to be dispatched now, we won't need it immediately.

With bug 1922077 we will release the first chunk of work to our users. As such lets move this bug into M14.

No longer blocks: 1871346, 1918610
Whiteboard: [webdriver:m13] → [webdriver:m14]

I actually need some widget events implemented first before I can see how this will work. As such lets block on bug 1848957 which will implement the first widget event (wheel scroll).

Also not sure if it's immediately necessary so I'm going to set it as P3 for M14 and if I don't get to it lets prioritize as P2 again in the next milestone.

Assignee: hskupin → nobody
No longer blocks: 1848957
Status: ASSIGNED → NEW
Depends on: 1848957
Priority: P2 → P3
Whiteboard: [webdriver:m14] → [webdriver:m15]
You need to log in before you can comment on or make changes to this bug.