Closed Bug 624243 Opened 14 years ago Closed 14 years ago

Return key on alert ect. is interpreted on the page content

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 112298

People

(Reporter: mack, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E) The return key on an alert box will be interpreted in last focused text input field of the web page as well. In the example any key on the input field will open an alert box. Pressing the enter key on the alert box will open another alert box beyond closing the first one. Reproducible: Always Steps to Reproduce: 1. Use above url or: <html> <head> <script type="text/javascript"> function checkReturnkey(evt) { alert("Press <Return> to continue"); } </script> </head> <body> <input type="text" onkeyup="checkReturnkey(event);"> </body> </html> 2. Press any key in the input field 3. Press the return key on the alert. Actual Results: When pressing the return key on the alert box, the box is closed and another alert box appears. Expected Results: The box should close, no other alter box should appear. Above url might disappear some time in future. Might be a duplicate of bug 613842, but as it is said to just be a duplicate of bug 613710, it might not be.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
I thought this was something new with tab-modal alerts, but I can indeed reproduce it on Firefox 3.6, so 112298 looks to be appropriate.
You need to log in before you can comment on or make changes to this bug.