X
Tap here to go to the mobile version of the site.

Support Forum

how to show menubar in a popup window from an extension(without modifying config) ?

Posted

I'm currently implementing an extention and I would like to start it from a popup window(the reason why is not important), so I would like to show the menu ar of the popup window to access the button which start my extention.

How can I do that in javascript from my extention ?

I'm currently implementing an extention and I would like to start it from a popup window(the reason why is not important), so I would like to show the menu ar of the popup window to access the button which start my extention. How can I do that in javascript from my extention ?

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36 OPR/28.0.1750.51

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17476 solutions 157949 answers

There are dom.disable_window_open_feature prefs to control what items a script can hide.

  • dom.disable_window_open_feature.menubar

See:

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

There are dom.disable_window_open_feature prefs to control what items a script can hide. *dom.disable_window_open_feature.menubar See: * http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config

Question owner

Thanck you for your answer.

Unfortunatly, my plugin aim to help debug javascript code. So, it's not my code which directly open popup, it's the code I'm watching. I cannot give argument to window.open.

Correct me if I did not understand something, but your second option consist in modifying the settings of the user browser. How could I do that from a plugin ?

Also, I realized that when I open a popup without the plugin tester(cfx run), i.e. in opening firefox the usual way, popup windows have the menubar with plugin buttons. O.o Is anyone know why this difference ?

Thanck you for your answer. Unfortunatly, my plugin aim to help debug javascript code. So, it's not my code which directly open popup, it's the code I'm watching. I cannot give argument to window.open. Correct me if I did not understand something, but your second option consist in modifying the settings of the user browser. How could I do that from a plugin ? Also, I realized that when I open a popup without the plugin tester(cfx run), i.e. in opening firefox the usual way, popup windows have the menubar with plugin buttons. O.o Is anyone know why this difference ?

Modified by chickenNinja

Question owner

By the way, I know what I'm trying to do is possible because firebug and all the other extension in my firefox have their icon in my popup windows. Only mine is not there.

By the way, I know what I'm trying to do is possible because firebug and all the other extension in my firefox have their icon in my popup windows. Only mine is not there.
cor-el
  • Top 10 Contributor
  • Moderator
17476 solutions 157949 answers

Did you check the dom.disable_window_open_feature.* prefs?

Setting this pref to true should prevent JavaScript from disabling the menu bar in a pop-up.

  • dom.disable_window_open_feature.menubar = true

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

Did you check the dom.disable_window_open_feature.* prefs? Setting this pref to true should prevent JavaScript from disabling the menu bar in a pop-up. *dom.disable_window_open_feature.menubar = true You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config