Closed
Bug 1517153
Opened 6 years ago
Closed 6 years ago
TypeError: chromeWin.gBrowserInit is undefined
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: craig, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
Steps to reproduce:
Various testing of local web extensions using web-ext
Actual results:
"TypeError: chromeWin.gBrowserInit is undefined"
from ext-webNavigation.js:128 is logged in the console
Expected results:
It shouldn't have logged; possibly other things are breaking because this function isn't completing, but I'm not sure.
Reporter | ||
Comment 1•6 years ago
|
||
The code is:
if (chromeWin && chromeWin.gBrowser &&
chromeWin.gBrowserInit.isAdoptingTab() &&
chromeWin.gBrowser.selectedBrowser === data.browser) {
return;
}
I think it needs an additional check for chromeWin.gBrowserInit, e.g.:
if (chromeWin && chromeWin.gBrowser &&
chromeWin.gBrowserInit &&
chromeWin.gBrowserInit.isAdoptingTab() &&
chromeWin.gBrowser.selectedBrowser === data.browser) {
return;
}
Reporter | ||
Comment 2•6 years ago
|
||
For the record, my specific example may have been self-inflicted, caused by doing async things from a form submission handler such that the page was reloading, and thus not worth fixing.
Updated•6 years ago
|
Component: Untriaged → General
Product: Firefox → WebExtensions
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•