Closed Bug 1643892 Opened 4 years ago Closed 3 years ago

Popup-Blocker not blocking multiple popups on one interaction

Categories

(Core :: DOM: Core & HTML, defect, P3)

77 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: keckjulian.rintheim, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

I just playes around with popups in FireFox to figure out whether I can find there are any (more ore less) critical bugs. Opening mulitple Tabs with window.open() gets blocked by popupblocker when called directly after user interaction. However, when you use the window.open() in a setTimeout, you are actually able to spawn as many popups as you like.

The following code represents this behaviour realy good:
function p(){
for(let i = 0; i<10; i++){
setTimeout(function(){
window.open("https://example.com#"+i, "", "width=200,height=100");
}, 0);
}
}

Tested in FireFox 77.0.1

Actual results:

I was able to open multiple popups on one user interaction.
(The function shown above is called from a onclick="p();" )

Expected results:

I expected the browser to block also these popups as it does when trying following code
for(let i = 0; i<10; i++){
window.open("https://example.com#"+i, "", "width=200,height=100");
}

Attached file multiple_popups.html

Forgot to attach my test-file... here it is

Thanks for taking the time to add this issue. I will set a component to have a starting point for this, if this is not the right component please feel free to route this ticket to the corresponding team, thanks!

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Product: Firefox → Core
Blocks: 1557516
Priority: -- → P3
Blocks: 1577516
No longer blocks: 1557516
Severity: S2 → S3

Now we don't allow open multiple popups in one interaction. I think bug 1679456 fixes this.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: