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)

62 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 675574

People

(Reporter: Hessel.doesburg, Unassigned)

Details

Attachments

(1 file)

Attached file test.html
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
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
(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
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)
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)
I assume we do want to change the behavior, but how is still a bit unclear.
Priority: -- → P3
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.

Attachment

General

Created:
Updated:
Size: