Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 4 件の返信
  • 1 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: 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

すべての返信 (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.