Messaging extensions APIs should also be resetting the idle timer to keep event pages alive longer
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
People
(Reporter: rpl, Unassigned)
References
Details
(Whiteboard: [addons-jira])
While investigating Bug 1851373 we determined that the messaging APIs (onMessage / onConnect) are not resetting the idle timer associated to the event pages.
As part of Bug 1851373 we would bring back the behavior that event pages used to experience before Bug 1830767 was landed in Firefox 117, which is going to make onMessage listeners to be resetting the idle timer as a side effect.
Instead, this bug is meant to track following up with making all messaging APIs (included onConnect) to reset the idle timer, and by making it more explicit (instead of the more implicit one that we are going to re-introduce as part of Bug 1851373 in the shorter term).
I'm also marking this bugzilla issue with dev-doc-needed upfront, because we want to be sure to communicate the change to the extension developers upfront before or while the change is still riding the train.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
The onConnect event was mistakenly believed to be broken even with the fix from bug 1851373, due to a flaw in the initial version of the unit test.
The updated test passes with the fix from bug 1851373 (and fails without the patch, as desired).
Updated•2 years ago
|
Description
•