Closed Bug 1960011 Opened 6 months ago Closed 4 months ago

Filter tabs.onUpdated events by cookieStoreId

Categories

(WebExtensions :: General, enhancement, P5)

Desktop
All
enhancement

Tracking

(firefox141 fixed)

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: 08xjcec48, Assigned: chrstina.lin, Mentored)

References

Details

(Keywords: dev-doc-complete, good-first-bug, Whiteboard: [addons-jira] )

Attachments

(1 file)

Steps to reproduce:

Create a Manifest V3 extension that relies on tabs.onUpdated to monitor updates in specific containers.

My specific use case for this is deleting URLs visited in those containers, as a workaround for Bug 1283320. The other APIs I've tested didn't catch all URLs being added to the history, e.g. #fragments added programmatically by the websites.

Actual results:

tabs.onUpdated is fired all the time as the user browses webpages in different containers.

For every event, Firefox runs the extension again, which needs to use JavaScript to get the list of monitored containers from storage and then check if tab.cookieStoreId is included in it.

Expected results:

Since I'm only interested in tabs that belong to specific containers, having contextId as a filter option would prevent all these constant checks. Firefox would only run the extension when necessary.

Component: Untriaged → General
OS: Unspecified → All
Product: Firefox → WebExtensions
Hardware: Unspecified → Desktop
See Also: → 1283320
Mentor: rob
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: good-first-bug
Priority: -- → P5
Summary: Filter tabs.onUpdated events by contextId → Filter tabs.onUpdated events by cookieStoreId
Assignee: nobody → chrlin
Status: NEW → ASSIGNED
Whiteboard: [addons-jira]
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: