Closed Bug 1874406 Opened 5 months ago Closed 1 month ago

Refactor and optimize event page keepalive implementation

Categories

(WebExtensions :: General, task, P2)

task

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: robwu, Assigned: zombie)

References

(Blocks 4 open bugs)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

There are a number of issues inherent with the current implementation of event page keep-alive:

We should replace the current timer-based keepalive with sometimes simpler with less overhead, such as maintaining a counter and timestamp. The counter (or Set) would then keep track of the number of outstanding keepalive requests, and avoid suspending a listener. Such a design would make it considerably easier to implement keepalive features (e.g. keeping alive the at startup - bug 1800914, or waitUntil - bug 1781265).

Severity: -- → N/A
Priority: -- → P2
Blocks: 1844044
Assignee: nobody → tomica
Status: NEW → ASSIGNED
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b6798b7e7265
Refactor, optimize and cleanup event page idle management r=robwu

Backed out for causing bc failures in browser_opentabs_more.js

Flags: needinfo?(tomica)
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8b966b24e351
Refactor, optimize and cleanup event page idle management r=robwu

Backed out for causing xpcshell failures in test_ext_dnr_static_rules_limits.js.

Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4ee96f483f2
Refactor, optimize and cleanup event page idle management r=robwu
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: needinfo?(tomica)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: