Closed
Bug 358003
Opened 19 years ago
Closed 15 years ago
onkeypress event triggered on onunload or onbeforeunload events if textfield has focus
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jared.mcateer, Unassigned)
Details
Attachments
(1 file)
|
657 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
When attempting to leave (or reload) a page the onunload or onbeforeunload events will trigger the onkeypress event of a textfield if it has focus.
Reproducible: Always
Steps to Reproduce:
1. Click on the textfield but do not press any keys
2. Hit Refresh
Actual Results:
The onunload event will popup an alert with the "somethingPressed" boolean as true when no key has been pressed.
Expected Results:
The alert should specify that the somethingPressed boolean as false.
| Reporter | ||
Comment 1•19 years ago
|
||
Attaching Testcase
| Reporter | ||
Updated•19 years ago
|
Component: Layout: Form Controls → DOM: Events
Updated•16 years ago
|
QA Contact: layout.form-controls → events
please retest I cant recreate this error in
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.11pre)
Gecko/20100921 Namoroka/3.6.11pre
If you still can please reopen
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•