Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

Why does changing the View toolbars setting on the window that has focus change it on ALL windows?

  • 2 svar
  • 1 har dette problem
  • 10 visninger
  • Seneste svar af cor-el

more options

If I have multiple windows open, and I click on View, Toolbars, and deselect one of the toolbars, EVERY window open has that change set to them instead of just the window that has the focus. It used to not work that way - deselecting a toolbar would only change the window that had the focus. I think it changed around V30 or so. Is there a setting that can be used to revert this behavior? Thanks.

All Replies (2)

more options

may be no or if you want this then my suggestion is use developer edition and Firefox stable edition may it ca help you.

more options

You can use code like this to toggle a specific toolbar in the currently selected browser window. You need to use this code in a toolbar button via an extensions that creates such a button or in an extension that sets a code to a keyboard shortcut like the keyconfig extension.

(function(){ /* toggle Bookmarks Toolbar */
var {classes:Cc,interfaces:Ci} = Components;
var wm = Cc[";1"].getService(Ci.nsIWindowMediator);
var gB = wm.getMostRecentWindow("navigator:browser").window.document;
var E=gB.getElementById('PersonalToolbar');
if(E.hasAttribute("collapsed")){E.removeAttribute('collapsed')} else{E.setAttribute('collapsed',true)}

You can toggle any toolbar if you use the right selector. You can use the DOM Inspector to find the ID of a toolbar.