Insufficient context information to diagnose "Error: Invalid tab ID"
Categories
(WebExtensions :: Frontend, defect, P3)
Tracking
(Not tracked)
People
(Reporter: from_bugzilla3, Assigned: robwu)
Details
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
str |
I was about to file a new bug, but then found this report, so I'll attach my comment and STR here. This bug does not only make it difficult to debug extensions, it also makes it difficult to debug test failures.
If an extension API error occurs, then the console attributes the error to ExtensionUtils.jsm
. This is next to useless, as is does not allow me to find the source of the error. Test case, run the following from the background page of any extension (e.g. via about:debugging
):
browser.tabs.get(1337);
The console then contains:
Error: Invalid tab ID: 1337 ExtensionUtils.jsm
ExtensionUtils.jsm
is shown, because somehow it is the top of the stack.
When I put a breakpoint in ExtensionParent.jsm
, then I see the following stack trace:
ExtensionError@resource://gre/modules/ExtensionUtils.jsm:54:49
getTab@chrome://browser/content/parent/ext-browser.js:457:11
get@chrome://browser/content/parent/ext-browser.js:1131:32
get@chrome://browser/content/parent/ext-tabs.js:925:29
call/result</<@resource://gre/modules/ExtensionParent.jsm:1160:68
withPendingBrowser@resource://gre/modules/ExtensionParent.jsm:771:26
call/result<@resource://gre/modules/ExtensionParent.jsm:1160:24
callAndLog@resource://gre/modules/ExtensionParent.jsm:1119:14
call@resource://gre/modules/ExtensionParent.jsm:1159:25
async*receiveMessage@resource://gre/modules/ExtensionParent.jsm:1006:16
( ... cut because not relevant ...)
Assignee | ||
Updated•5 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•2 years ago
|
I'm getting this same error message "Error: Invalid tab ID: 1" but my source says it's "undefined" - that's literally what it says where the source of error is. I'm getting this in literally ever tab I've tried, my site, wikipedia, youtube... each has same number "1"
Description
•