Popup-Blocker not blocking multiple popups on one interaction
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: keckjulian.rintheim, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
833 bytes,
text/html
|
Details |
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");
}
Reporter | ||
Comment 1•4 years ago
|
||
Forgot to attach my test-file... here it is
Comment 2•4 years ago
|
||
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!
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•3 years ago
|
||
Now we don't allow open multiple popups in one interaction. I think bug 1679456 fixes this.
Description
•