Error when calling tabs.update with {active: true}
Categories
(GeckoView :: Extensions, defect, P2)
Tracking
(firefox75 fixed)
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: csadilek, Assigned: agi)
References
(Blocks 1 open bug)
Details
(Whiteboard: [geckoview:m75])
Attachments
(3 files)
We ran into this when testing uBlock. The logger / zap / picker buttons in the action popup try to find and select an existing tab before opening a new one.
Bug in Fenix: https://github.com/mozilla-mobile/fenix/issues/8467
The error:
BrowserApp.selectTab is not a function ext-tabs.js:408
update chrome://geckoview/content/ext-tabs.js:408
update self-hosted:878
result resource://gre/modules/ExtensionParent.jsm:1106
withPendingBrowser resource://gre/modules/ExtensionParent.jsm:737
result resource://gre/modules/ExtensionParent.jsm:1106
callAndLog resource://gre/modules/ExtensionParent.jsm:1068
recvAPICall resource://gre/modules/ExtensionParent.jsm:1105
AsyncFunctionNext self-hosted:696
We also see:
Error: Invalid tab ID: 10069
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
I mentioned this before at https://bugzilla.mozilla.org/show_bug.cgi?id=1565536#c1
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.
This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.
This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.
Assignee | ||
Comment 4•4 years ago
|
||
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1eb1e65a239 Move Extension session delegates to SessionController. r=snorp,esawin https://hg.mozilla.org/integration/autoland/rev/c0e05f4f2db2 Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin https://hg.mozilla.org/integration/autoland/rev/b43ca6507c9a Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Comment 6•4 years ago
|
||
Backed out 3 changesets (Bug 1616625) for causing xpcshell failures in xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_csp_custom_policies.js CLOSED TREE
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=291526981&repo=autoland&lineNumber=2838
Backout by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c3cd1d623f1 Backed out 3 changesets for causing xpcshell failures in xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_csp_custom_policies.js CLOSED TREE
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7772ff1517fd Move Extension session delegates to SessionController. r=snorp,esawin https://hg.mozilla.org/integration/autoland/rev/9289e0f9f2c6 Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin https://hg.mozilla.org/integration/autoland/rev/0636bd0463dd Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7772ff1517fd
https://hg.mozilla.org/mozilla-central/rev/9289e0f9f2c6
https://hg.mozilla.org/mozilla-central/rev/0636bd0463dd
Updated•4 years ago
|
Description
•