[Document PiP API] When the tab is switched to the background, the animation in the PiP window becomes excessively slow
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: nayinain, Assigned: vhilla)
References
(Blocks 2 open bugs, )
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0
Steps to reproduce:
- Open
testcase.html. - Click the Toggle PiP button.
- Switch to another browser tab.
Actual results:
The animation in the Picture‑in‑Picture window becomes significantly slower.
Expected results:
The animation in the Picture‑in‑Picture window should run at normal speed.
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
•
|
||
When switching to another tab, the opener becomes inactive and the script that controls the PiP becomes throttled. If the script ran in the PiP document, I think it should not slow down.
I looked through the code and debugged a bit. PresShell::ComputeActiveness determines isActiveTab=false, we call nsRefreshDriver::SetActivity(false) and this throttles the opener.
This doesn't happen in Chrome and I verified that in general, they throttle inactive documents too (rAF slows down / stops). So I guess (doesn't help)PresShell::ComputeActiveness needs adjustment.
| Assignee | ||
Comment 3•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
| Assignee | ||
Updated•25 days ago
|
Updated•17 days ago
|
| Assignee | ||
Comment 5•17 days ago
|
||
Updated•17 days ago
|
Updated•10 days ago
|
Description
•