Description
This may not actually be a bug if it's working as expected, but it caught me out while developing an extension. I was loading it as a temporary add-on via about:debugging
and wondering if it could be made to work with lightTree: true
, so I added that to the TST register call. After a bit of experimentation I decided it couldn't work, as I really needed the message.tab.discarded
property. So I removed that line from the call to register the extension, but my extension still wouldn't work—message.tab.discarded
was returning undefined
. I removed the temporary add-on, and now my published (via AMO) add-on also stopped working.
It seems that TST caches the setting for the add-on (looking at tst-api.js
), so that if ever you set lightTree: true
during development, it's necessary to always include lightTree: false
from that point on—am I understanding correctly? I was somewhat surprised that loading a temporary add-on would affect the value of that property for an installed add-on though.