Open Bug 1713819 Opened 4 years ago Updated 2 years ago

tabs.onUpdated.addListener throws an exception when passing properties: ["discarded", "url"]

Categories

(GeckoView :: Extensions, defect, P3)

Unspecified
All
defect

Tracking

(Not tracked)

People

(Reporter: amejia, Unassigned)

References

Details

(Whiteboard: [geckoview:2023?])

Filing on behalf of @twisniewski

When passing the parameter properties to browser.tabs.onUpdated.addListener it throws an exception which is not reproducible in on desktop:

Uncaught Error: Incorrect argument types for tabs.onUpdated.
    _registerShims moz-extension://145ff6a9-410e-4cda-8534-fca729695095/lib/shims.js:347
    Shims moz-extension://145ff6a9-410e-4cda-8534-fca729695095/lib/shims.js:294
    <anonymous> moz-extension://145ff6a9-410e-4cda-8534-fca729695095/run.js:13

Tested with these three calls, and only the last one did not throw that exception:

browser.tabs.onUpdated.addListener(unmarkShimsActive, {
  properties: ["discarded", "url"],
});

browser.tabs.onUpdated.addListener(unmarkShimsActive, {
  properties: ["url"],
});

browser.tabs.onUpdated.addListener(unmarkShimsActive); // where I filter on url/discarded manually

Summary: tabs.onUpdated.addListener throws an exception when passing properties: ["discarded", "url"] to the properties parameter → tabs.onUpdated.addListener throws an exception when passing properties: ["discarded", "url"]
Severity: -- → S3
Priority: -- → P2

still relevant

Priority: P2 → P3
Whiteboard: [geckoview:2023?]
See Also: → 1865366
You need to log in before you can comment on or make changes to this bug.