Closed
Bug 232368
Opened 21 years ago
Closed 21 years ago
[FIX] Hang when tab into input element with onBlur handler
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: loconet, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: hang, regression, testcase)
Attachments
(3 files, 1 obsolete file)
115 bytes,
text/html
|
Details | |
20.36 KB,
text/plain
|
Details | |
1.00 KB,
patch
|
bzbarsky
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent:
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Using "Spiffy DHTML Popup Calendar" from :
http://www.geocities.com/bazillyo/spiffy/calendar/
I've created a page which best demostrates this issue:
http://scott.telnetd.com/loco/moz/calbug.php
When the focus is changed to the calendar control displayed on the page, the
browser stops responding. I'm not sure if it's bug in the dhtml itself more than
the browser.
Reproducible: Always
Steps to Reproduce:
1. place cursor on the sample text box
2. hit tab
3.
Actual Results:
Browser stops responding. The process needs to be killed in order to terminate
Expected Results:
Good question, as I stated above, I'm not sure if it's a bug with the DHML
itself (infinite loop? ). Going by the results from other browsers, It should
set focus on the control without the user being able to edit it.
Confirmed in:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040127
Unaffected:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
This sounds like bug 232348, however I could not reproduce the problem in that URL.
Comment 2•21 years ago
|
||
testcase. Just load and hit tab.
linux trunk 2004012708 hangs.
Reporter | ||
Comment 3•21 years ago
|
||
(In reply to comment #2)
> Created an attachment (id=140029)
> testcase
>
> testcase. Just load and hit tab.
> linux trunk 2004012708 hangs.
Ah! thanks, That's a lot cleaner.
Confirming testcase crash in: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.6) Gecko/20040113
Comment 4•21 years ago
|
||
confirmed with linux trunk 2004012708
this regressed between linux trunk 2003110605 and 2003110705, indicating bug
118685, which just landed on 1.4 branch...
==> Mats/Event Handling
Assignee: general → mats.palmgren
Status: UNCONFIRMED → NEW
Component: Browser-General → Event Handling
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: general → ian
Summary: Crash when focus on a disabled control handled by dhtml → Hang when tab into input element with onBlur handler
Comment 5•21 years ago
|
||
Comment 6•21 years ago
|
||
*** Bug 232348 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
*** Bug 229302 has been marked as a duplicate of this bug. ***
Comment 8•21 years ago
|
||
I can confirm the bug both with the testcase as well as with original URL using
the following Mozillas:
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.6) Gecko/20040120 Firebird/0.7+
(also in Windows 98SE)
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de-AT; rv:1.6) Gecko/20040113
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de-DE; rv:1.6) Gecko/20040127
Firebird/0.7+ (MMx2000)
So I guess it's not PC specific.
Neither is it "trunk", using FIREBIRD_0_8_BRANCH here.
Comment 9•21 years ago
|
||
I can confirm the current testcase on Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.6b) Gecko/20031217 Firebird/0.7+. However, I don't believe the subject of
this bug is correct. I've attached a testcase with an onblur handler to a text
box and it doesn't trigger the bug. However, the testcase also gives a text
box with an onfocus handler that does effectively hang the browser. The actual
behaviour is slightly different, but I believe is the same issue. This test
case causes no problems on Firebird 0.7.
Comment 10•21 years ago
|
||
Comment on attachment 140060 [details]
Test case
alert() totally changes the landscape. for instance, the second textbox with
onfocus="alert('bob')" hangs Mozilla builds from before this bug regressed
Attachment #140060 -
Attachment is obsolete: true
Comment 11•21 years ago
|
||
dup of Bug 230813.
Comment 12•21 years ago
|
||
*** Bug 230813 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 13•21 years ago
|
||
I'm looking into this...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Assignee | ||
Comment 14•21 years ago
|
||
*** Bug 233413 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•21 years ago
|
||
This is indeed a regression from bug 118685, the lines that trigger the problem
(from bug 147927) got checked in during the review so I missed it.
The problem is an infinite loop of calls to ShiftFocusInternal().
Assignee | ||
Comment 16•21 years ago
|
||
This fixes the URL + testcase and all duplicates. I have also verified that
it doesn't break bug 118685 and bug 147927.
Assignee | ||
Updated•21 years ago
|
Attachment #140908 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•21 years ago
|
Summary: Hang when tab into input element with onBlur handler → [FIX] Hang when tab into input element with onBlur handler
Comment 17•21 years ago
|
||
Comment on attachment 140908 [details] [diff] [review]
Patch rev. 1
r=bzbarsky
Attachment #140908 -
Flags: superreview?(bryner)
Attachment #140908 -
Flags: review?(bzbarsky)
Attachment #140908 -
Flags: review+
Assignee | ||
Comment 18•21 years ago
|
||
*** Bug 233551 has been marked as a duplicate of this bug. ***
Comment 19•21 years ago
|
||
*** Bug 233566 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Attachment #140908 -
Flags: superreview?(bryner) → superreview+
Comment 20•21 years ago
|
||
Patch checked in to 1.7a.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 21•21 years ago
|
||
*** Bug 233864 has been marked as a duplicate of this bug. ***
Comment 22•21 years ago
|
||
isn't this also needed for 1.4.2?
bug 118685 made it into 1.4.2. however, there have been no 1.4 branch nightlies
since Oct (except for OS/2), so I can't actually test it (without building from
1.4 CVS).
Comment 23•21 years ago
|
||
Andrew, see bug 118685 comment 54 and bug 147927 comment 23
Comment 24•21 years ago
|
||
*** Bug 235111 has been marked as a duplicate of this bug. ***
Comment 25•21 years ago
|
||
*** Bug 236265 has been marked as a duplicate of this bug. ***
Comment 26•21 years ago
|
||
*** Bug 236437 has been marked as a duplicate of this bug. ***
Comment 27•21 years ago
|
||
*** Bug 236931 has been marked as a duplicate of this bug. ***
Comment 28•21 years ago
|
||
*** Bug 245827 has been marked as a duplicate of this bug. ***
Comment 29•21 years ago
|
||
*** Bug 245834 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•