Allow "url" as property filter for tabs.onUpdated
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(firefox88 fixed)
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: robbendebiene, Assigned: robwu, Mentored)
Details
(Keywords: dev-doc-complete, good-first-bug)
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Steps to reproduce:
browser.tabs.onUpdated.addListener() supports filtering for specific properties such as "favIconUrl", "status" or "title".
browser.tabs.onUpdated.addListener(handleUpdated, {
properties: ["url"]
});
Actual results:
"url" is not allowed as a property filter even if the tabs permission is granted.
Expected results:
I cannot think of any reason why "url" shouldn't be allowed as a property filter.
Assignee | ||
Comment 1•4 years ago
|
||
Are you interested in submitting a patch once you're done with bug 1679688? I expect this one to be much easier.
Reporter | ||
Comment 2•4 years ago
|
||
Yeah, I already thought about it. I just wanted to wait if this behaviour was by design.
Comment 3•4 years ago
|
||
Hi I would like to work on this bug as my first contribution. It would be really great if you could mentor me on what all I need to setup to start working on this issue.
Assignee | ||
Comment 4•4 years ago
•
|
||
The patch for bug 1498432 will include a unit test that uses
tabs.onUpdated with the "url" filter for "properties".
The updated test here verifies that the tabs.onUpdated event does not
include other properties in changeInfo when filtering by "status".
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Backed out 2 changesets (bug 1498432, bug 1680279) for causing bc failures in browser_ext_tabs_discard_reversed.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/ab3f023535ea70eaa8dd35b3c4833db2a7fa480e
Push with failures, failure log.
Comment 8•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Description
•