Last Comment Bug 112298 - the alert box called when, document.onkeyup JS event is triggered, goes in a loop
: the alert box called when, document.onkeyup JS event is triggered, goes in a ...
Status: NEW
: testcase
Product: Core
Classification: Components
Component: Event Handling (show other bugs)
: Trunk
: All All
: -- normal with 6 votes (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
:
: Andrew Overholt [:overholt]
Mentors:
: 293565 357156 566177 624243 (view as bug list)
Depends on: 92014
Blocks:
  Show dependency treegraph
 
Reported: 2001-11-27 17:05 PST by Madhur Bhatia
Modified: 2014-05-28 15:21 PDT (History)
7 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
testcase (263 bytes, text/html)
2001-11-27 17:05 PST, Madhur Bhatia
no flags Details
testcase from Bug 624243 (348 bytes, text/html)
2011-01-09 19:00 PST, Alice0775 White
no flags Details

Description Madhur Bhatia 2001-11-27 17:05:00 PST
see attached testcase

1. hit a key to trigger the document.onkeyup JS event
2. an alert box will be displayed
3. hit the keyboard 'enter' --- 
The event goes into a loop
4. if i click the mouse button on the alert box 'ok' butoon, the event comes out 
of the loop.

Note: the event goes into the loop only if the keyboard is used to discard the 
alert box.

happens on all platforms
NS6.2 : 2001-10-22-0.9.4 branch build
NS6.2.1 : 2001-11-26-6.2.1 rtm build
Comment 1 Madhur Bhatia 2001-11-27 17:05:39 PST
Created attachment 59447 [details]
testcase
Comment 2 joki (gone) 2001-11-28 14:23:09 PST

*** This bug has been marked as a duplicate of 92014 ***
Comment 3 Madhur Bhatia 2001-11-29 14:21:47 PST
I do not see how this bug is a duplicate of bug 92014.

92014 says that "If keydown event opens an alert box, and space is pressed the 
box is dismissed."

whereas, this bug specifies that "onkeyup event when triggered for the document 
object goes into a loop". Also checked this on 2001-11-26-10trunk build for 
win2000.

Reopening this bug. 
Comment 4 joki (gone) 2002-01-31 12:20:56 PST
It is slightly different from 92014 but only because 92014 only talks about the
space bar.  This is exactly the same bug but with the enter key instead. I'll
leave it as depends on rather than dupe 
Comment 5 Pham 2003-08-01 21:04:56 PDT
http://bugzilla.mozilla.org/show_bug.cgi?id=179125#c3

joki is no longer here
Comment 6 Vedran Miletic 2003-10-05 07:56:24 PDT
retargeting
Comment 7 Markus Fischer 2005-02-15 23:37:08 PST
Got bit by this bug today, too. Rather annoying because I'm catching the
onkeyup-Event on a text input box, check for keyCode 13 and validate the
content. If it doesn't match the criterias, I display an alert() box, however
when they press the enter key, it's immidiately fired by the text input box again.
Comment 8 Nian Liu(n/a in a long time) 2005-05-10 20:34:46 PDT
*** Bug 293565 has been marked as a duplicate of this bug. ***
Comment 9 Jesse Ruderman 2009-09-15 16:53:34 PDT
*** Bug 357156 has been marked as a duplicate of this bug. ***
Comment 10 Mardeg 2010-05-16 05:26:08 PDT
*** Bug 566177 has been marked as a duplicate of this bug. ***
Comment 11 Alice0775 White 2011-01-09 10:27:41 PST
*** Bug 624243 has been marked as a duplicate of this bug. ***
Comment 12 Alice0775 White 2011-01-09 19:00:11 PST
Created attachment 502412 [details]
testcase from Bug 624243
Comment 14 Diego Armando Ortiz Huerta 2014-05-28 15:21:31 PDT
Any update about this bug?

Note You need to log in before you can comment on or make changes to this bug.