AnimationFramePromise hangs when window gets navigated
Categories
(Remote Protocol :: Agent, defect, P2)
Tracking
(firefox135 fixed)
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Whiteboard: [webdriver:m14][webdriver:relnote])
Attachments
(1 file)
Noticed while investigating the issue over on bug 1936804. In our input.performActions implementation for WebDriver BiDi we use the AnimationFramePromise in the content process. This worked fine so far but when an action actually triggers a navigation of the current navigable the formerly registered callback for requestAnimationFrame will no longer be called because the window gets replaced.
Instead of checking window.close only we should switch to EventPromise and wait for the unload event of the window to escape and not hang forever.
The changes that I'm going to upload soon will fix the problem on bug 1936804 for nofis and nofis-ship jobs that we run by default in CI now.
| Assignee | ||
Comment 1•11 months ago
|
||
This patch modifies the AnimationFramePromise function to use
an unload event listener for aborting the promise instead of
repeatedly polling win.closed.
This approach simplifies the logic, avoids reliance on polling,
and fixes a hang issue that occurred when the window was navigated.
| Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 3•11 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•10 months ago
|
Description
•