Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a couple of custom toolbars in Firefox, I hide them and closed Firefox. When I open up Firefox next time, all custom toolbars are visible. Why Firefox is not remembering hide settings of custom toolbars, it do remember hide settings for other toolbars like Yahoo or Google toolbar.

How I can make them hidden by default?

share|improve this question

1 Answer 1

I am sure you have found the answer for this question. So here is the answer for new firefox extensions' developers: you should use document.persist() function to save the state of the attributes.

So if you want to save your toolbar's collapsed attrubute value (say your toolbar's ID is "samplebar") you should write this:

document.persist("samplebar", "collapsed")

Second argument is the attribute name you want to be saved.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.