Open Bug 1352966 Opened 7 years ago Updated 2 years ago

"Popup blocker" icon is displayed in the URL bar while a webpage without popups is loading if previously a webpage with popups was accessed

Categories

(Firefox :: General, defect)

x86_64
All
defect

Tracking

()

Tracking Status
firefox55 --- affected

People

(Reporter: VladB, Unassigned)

Details

Attachments

(1 file)

Attached video pop-up blocker
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170402030202

[Affected Platforms]:
- All Windows
- All Mac OS
- All Linux

[Prerequisites]:
- In about:preferences#privacy the "Block pop-up windows" option is checked.

[Steps to reproduce]:
1. Start Nightly browser and go to http://www.popuptest.com/popuptest1.html (or any webpage that has popups.
2. In the URL bar enter the link for another website that doesn't have popups (e.g. www.youtube.com)
3. Observe the "Popup blocker" icon.
4. Press "Enter" key or access that link.
5. Observe the "Popup blocker" icon.
  
[Expected results]:
- When the new webpage is loading, the "Popup blocker" icon is not displayed.
 
Actual results:
- While the new page is loading the "Popup blocker" icon from the previously loaded webpage is displayed and can be clicked. When it is clicked the drop-down menu for the previous webpage is displayed.

[Notes]:
- A screen recording of this behavior is attached to this issue.
Flags: needinfo?(gijskruitbosch+bugs)
(In reply to Vlad Bacia-Mociran [:VladB] from comment #0)
> 1. Start Nightly browser and go to http://www.popuptest.com/popuptest1.html
> (or any webpage that has popups.

Actually, after debugging this a bit, I think this problem is specific to some of the pages on this test site, specifically because they open popups in unload handlers (ie precisely at this point where the page "whites out" - at that point we first clear the icon, and then reshow it because the page triggered another popup!). So, for instance, I can't reproduce with http://www.popuptest.com/popuptest4.html .

Is this what you're seeing too?
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(vlad.bacia)
I suspect we might be OK to just ignore popups that get fired after the main page hides before the next page fires its pageshow. Felipe, how does that sound?
Component: General → XUL Widgets
Flags: needinfo?(felipc)
Product: Core → Toolkit
I think this issue is reproducible only on websites that have automatic popups. If the popups are triggered only by mouse over events, then the "Popup blocker" icon is no longer displayed in the URL bar when the next webpage is loaded (comment 1).
Flags: needinfo?(vlad.bacia)
(In reply to :Gijs from comment #2)
> I suspect we might be OK to just ignore popups that get fired after the main
> page hides before the next page fires its pageshow. Felipe, how does that
> sound?

Sounds good to me!
Flags: needinfo?(felipc)
Component: XUL Widgets → General
Product: Toolkit → Firefox
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: