Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 4 respostas
  • 3 têm este problema
  • 10 visualizações
  • Última resposta por cor-el

more options

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 ?

Todas as respostas (4)

more options

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.

more options

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 ?

Modificado por chickenNinja a

more options

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.

more options

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.