Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

FF not closing Tabs as direct by web application - works fine in IE

  • 4 respostas
  • 1 tem este problema
  • 2 visualizações
  • Última resposta de the-edmeister

more options

We are releasing a new version of our Web site. www.norfolkresearch.org In order to give users a preview, we include a button on the current version that is supposed to close the current version and open the new version in a new tab or window. There is a button in the new vrsion that does the reverse. The versions can not be open at the same time. This functionality works fine in IE.. FF opens the new version but does not close the other version. This seems to happening only for the first time the switch is attempted durring a session. If you manually close the version you start from.and then attemtp to switch back and forth between the versions it works as expected . We are using v12 and 13 on a PC and v6 on a MAC

We are releasing a new version of our Web site. www.norfolkresearch.org In order to give users a preview, we include a button on the current version that is supposed to close the current version and open the new version in a new tab or window. There is a button in the new vrsion that does the reverse. The versions can not be open at the same time. This functionality works fine in IE.. FF opens the new version but does not close the other version. This seems to happening only for the first time the switch is attempted durring a session. If you manually close the version you start from.and then attemtp to switch back and forth between the versions it works as expected . We are using v12 and 13 on a PC and v6 on a MAC

Todas as respostas (4)

more options

Generally speaking, Firefox does not allow a script to close a window or tab unless a script initially opened that window or tab. There might be an error message in the console (Ctrl+Shift+j) when this happens, i.e., when closing the window/tab is blocked. Can you confirm whether this is the issue?

more options

Hi,

Thanks for the reply. Your repsonse does explain the behavior. Although I believe it worked with older versions of Firefox. Hitting contro+shit didn't turn anything up. I've run firebug while hitting the button to run this function and no errors show up using it's toolbar -> console->errors. You can try it yourself going to www.norfolkresearch.org and then hitting the button that says Use Public Search Version 2. Is there anyway of getting around this Firefox restriction ?

more options

In order to get around the restriction, you need to use a signed script:

JavaScript Security: Signed Scripts
Signed Scripts & Privileges: An Example

more options

That behavior is the same (not allowing a website to close a window that it didn't open itself) going all the way back to Firefox 2.0, the oldest version I currently have installed on this PC.