Open Bug 2007792 Opened 21 hours ago Updated 20 hours ago

Make our code in interventions.js start up as synchronously as possible.

Categories

(Web Compatibility :: Interventions, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: twisniewski, Assigned: twisniewski)

Details

Attachments

(1 file)

After the changes I'm making in bug 2007409, we can refactor interventions.js to make it start up with essentially no async code (just the registration of content scripts). This is a pretty big deal, since it will let us register our webRequest listeners early enough that they will all end up persisted, which they are not right now (as per bug 2007607 comment 3). While we're at it, we can fix a few minor bugs with about:compat when prefs are toggled, clean up our logging a little so it's less spammy, and remove our setPref API (since it needs to be async, and we don't really need it.

This refactor will also open the door to further optimizations, for instance only registering a single listener per webRequest events (which could further help startup perf on slower devices), as well as making it much easier to begin persisting our listeners and content scripts across add-on restarts.

Summary: Make our code in interventions.js start up sa synchronously as possible. → Make our code in interventions.js start up as synchronously as possible.
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: