[SeaMonkey] uBlock duplicate icon on Context menu
This is a weird error, but I decided to report it anyway. It can be re-produced as follows:
- Open the browser with only a blank tab
- Install uBlock (from scratch, I also removed the ublock0.sqlite from profile's extension-data)
- Look at the context menu: There's no icon.
- Close the browser
- Open the browser (with no page, only an empty tab)
- Look at the context menu: There's an icon.
- Open some url (http://www.seamonkey-project.org/)
- Look at the context menu: There are 2 icons.
uBlock 0.9.9.2 SeaMonkey version 2.33.1 windows 7 x64
Following are errors I got on the Javascript console. I also got numerous warnings but I will only post them if you need them.
After step 5 I get the following error: Sat Jun 20 2015 09:53:28 Error: TypeError: getTabBrowser(...) is null Source file: chrome://ublock0/content/js/vapi-background.js Line: 901
After step 7 I get the following error: Sat Jun 20 2015 09:53:28 Error: TypeError: vAPI.lastError is not a function Source file: chrome://ublock0/content/js/assets.js Line: 130
This probably is the same bug that appeared in chrisaljoudi's version during coding legacy toolbar button and it was fixed in https://github.com/chrisaljoudi/uBlock/commit/ed6064912e0740a775a4fa9ab765565f1f8afde7 Probably some Seamonkey-specific as mentioned at https://github.com/chrisaljoudi/uBlock/issues/1315#issuecomment-96264019
Fixed with 1d85c16f82dbcc106110898254a6c10de2df66a5.