Open Bug 1751242 Opened 4 years ago Updated 9 months ago

Throttled background tab timers can wakeup multiple times per second

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: florian, Unassigned)

References

(Blocks 1 open bug)

Details

Background tab timer are throttled to 1Hz, but if multiple tabs are loaded in the same content process, each tab can wake up at a different time, causing more CPU wake ups than needed in the process.

To verify this, I set dom.ipc.processCount to 1, and loaded several (about 30) tabs with this url: data:text/html,<body onload="var a = 0; setInterval(() => {document.title = ++a}, 100)">

Here's a profile of the result: https://share.firefox.dev/3KvBTEM
The timer thread wakeups about 14 times per second.

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