You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.2) Gecko/20100115 Firefox/3.6
with GM 0.8.20100211.5.
The error console shows "this.menuCommanders is undefined" in L308 of browser.js.
The error is thrown because when closing a browser window while a document is active, Firefox first fires the unload event and then the pagehide event. Thus, GM_BrowserUI.chromeUnload deletes menuCommanders before contentUnload tries to access it.
PS: While checking the source code for more information on that error, I stumbled across this line in GM_BrowserUI.contentUnload. Is that line intended (and if so, why)?
The text was updated successfully, but these errors were encountered:
I've noticed this error for quite some time, thanks for doing this research Ventero!
I also noticed that the item variable on L308 of browser.js is globally scoped and not scoped to the function in which it resides, which it should be as far as I can tell.
I also added a check of the menuCommanders array's length before creating variables (that will not be used if the length is equal to 0) to my issue-1087 branch, in this commit.
Steps to reproduce:
For reference:
with GM 0.8.20100211.5.The error console shows "this.menuCommanders is undefined" in L308 of browser.js.
The error is thrown because when closing a browser window while a document is active, Firefox first fires the unload event and then the pagehide event. Thus, GM_BrowserUI.chromeUnload deletes menuCommanders before contentUnload tries to access it.
PS: While checking the source code for more information on that error, I stumbled across this line in GM_BrowserUI.contentUnload. Is that line intended (and if so, why)?
The text was updated successfully, but these errors were encountered: