Closed Bug 1851668 Opened 2 years ago Closed 2 years ago

Messaging extensions APIs should also be resetting the idle timer to keep event pages alive longer

Categories

(WebExtensions :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1851373

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.

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).

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1851373
Resolution: --- → DUPLICATE
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.