Closed
Bug 1484810
Opened 6 years ago
Closed 6 years ago
can create as much pop-ups as you want with this method
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 675574
People
(Reporter: Hessel.doesburg, Unassigned)
Details
Attachments
(1 file)
1.07 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180816151750 Steps to reproduce: I made a simple html file to test some pop-up functions this file is attached to this report. so basically what happens is if you use the button tag in this way you can have as many pop-ups as you want: <button onclick="myFunction()">button1</button> you will see this explained in the provided .html file Actual results: I always thought you only got 1 pop-up per click but with my simple code it can create as much as you want with one click Expected results: it should only give 1 pop-up per 1 click not sure if this is done on purpose but i'm still submitting this
Comment 1•6 years ago
|
||
I could reproduce this issue on User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 In Firefox, it gives 6 pop up windows per click while in Chrome and IE it gives 1 pop window per click.
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Product: Firefox → Core
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Kanchan Kumari QA from comment #1) > I could reproduce this issue on > User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) > Gecko/20100101 Firefox/62.0 > > In Firefox, it gives 6 pop up windows per click while in Chrome and IE it > gives 1 pop window per click. the amount of pop-ups is determent by how many window.open methods you have within the function your button calls you can see this by looking in to the source code of the .html file
Comment 3•6 years ago
|
||
We don't have a restriction for how many windows could be popped up within a user input. smaug, is this intentional or something we should fix?
Flags: needinfo?(bugs)
Comment 4•6 years ago
|
||
That is the behavior we've always had, IIRC. There is now some talk about spec'ing different setup. Couldn't find a perfect link, but https://github.com/whatwg/html/issues/3859 has some links.
Flags: needinfo?(bugs)
Comment 5•6 years ago
|
||
I assume we do want to change the behavior, but how is still a bit unclear.
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•