Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

The yellow popup information bar appears and quickly disappears before I can click it

  • 8 отговора
  • 5 имат този проблем
  • 1 изглед
  • Последен отговор от benihana21

more options

Normally when a popup is blocked, the yellow information bar appears at the top of the viewport and persists so the user can click it and manage his popup exceptions. Starting in Firefox 22, the information bar, along with the popup icon on the right in the URL bar appear, but quickly disappear, making it impossible to click on either to manage my popup exceptions.

I realize that other ways exist to add popup exceptions, but I'm a programmer and the site I'm working on gives our users instructions to add popup exceptions by using the yellow popup information bar.

Normally when a popup is blocked, the yellow information bar appears at the top of the viewport and persists so the user can click it and manage his popup exceptions. Starting in Firefox 22, the information bar, along with the popup icon on the right in the URL bar appear, but quickly disappear, making it impossible to click on either to manage my popup exceptions. I realize that other ways exist to add popup exceptions, but I'm a programmer and the site I'm working on gives our users instructions to add popup exceptions by using the yellow popup information bar.

Избрано решение

Firefox may be removing the infobar in response to something else the script does after attempting to open the popup. Can you post a URL to the actual page, or to a stripped down page that demonstrates the problem?

Прочетете този отговор в контекста 👍 0

Всички отговори (8)

more options

Don't you get a pop-up block icon on the location bar?

more options

Yes, I do get the pop-up icon in the location bar, but it disappears just as quickly as the yellow pop-up blocker information bar.

more options

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe Mode start window.
more options

Thanks for the information about Safe Mode, but unfortunately that didn't resolve the issue.

more options

Избрано решение

Firefox may be removing the infobar in response to something else the script does after attempting to open the popup. Can you post a URL to the actual page, or to a stripped down page that demonstrates the problem?

more options

jscher2000, thank you so much for the push in the right direction!

The following code was causing Firefox to retract the popup bar:

var win = window.open("NewPage.html"); win.focus();

The focus() function was taking focus from the parent window, thus eliminating the popup bar.

more options

Hi benihana21, I wonder whether you can retain that feature for others by checking that the window exists? I haven't tried to test this:

var win = window.open("NewPage.html"); if (win) win.focus();
more options

Yes! That does work, and is indeed the best solution. Thank you.