Filter tabs.onUpdated events by cookieStoreId
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(firefox141 fixed)
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.
Updated•6 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•4 months ago
|
||
bugherder |
Description
•