Closed
Bug 31892
Opened 24 years ago
Closed 24 years ago
A crash occurs with onfocus event assigned to a AREA element
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: chrispetersen, Assigned: joki)
References
()
Details
(Keywords: crash, platform-parity, Whiteboard: [nsbeta2+]fix in hand)
Build: Apprunner Version: 2000031318 Platform: Win Other Platforms: Works on Mac.Need to try on Linux. Expected Results: A dialog should appears generated by the onFocus event. What I Got: The application crashes. Steps to reproduce: 1) Open the following test case: http://mozilla.org/quality/browser/standards/html/area_onfocus.html 2) Click on the red circle. 3) The application should crash.
Assignee | ||
Comment 1•24 years ago
|
||
Okay, if we still want this for beta I have a fix. Non-threatening null check.
Whiteboard: fix in hand
Comment 2•24 years ago
|
||
Please include a patch in the bug. If I understand your comment, you have a one line null check. Thanks, Jim
Assignee | ||
Comment 3•24 years ago
|
||
Here is the patch.
Index: nsImageMap.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/html/base/src/nsImageMap.cpp,v
retrieving revision 3.38
diff -r3.38 nsImageMap.cpp
915c915
< if (NS_FAILED(rv)) return PR_FALSE;
---
> if (NS_FAILED(rv) || !baseUri) return PR_FALSE;
Status: NEW → ASSIGNED
Updated•24 years ago
|
Putting on PDT- radar. Does this impact any top 100?
Whiteboard: fix in hand → [PDT-]fix in hand
Reporter | ||
Comment 5•24 years ago
|
||
Jan, This test case wasn't distilled from a site so I don't know. But since both AREA maps and JS alert dialogs are frequently used, this problem may occur on various site.
Comment 6•24 years ago
|
||
adding beta2 keyword, and removing pdt status
Keywords: beta2
Whiteboard: [PDT-]fix in hand → fix in hand
Putting on [beta2+] radar....check it in!!!:-)
Whiteboard: fix in hand → [beta2+]fix in hand
Comment 10•24 years ago
|
||
Updating [beta2+] in Status Summary to [nsbeta2+]
Keywords: beta2
Whiteboard: [beta2+]fix in hand → [nsbeta2+]fix in hand
Assignee | ||
Comment 11•24 years ago
|
||
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•24 years ago
|
||
With the May 15th build (2000051508), I can nolonger reproduce this crash under Win 98. Marking verified fixed.
Status: RESOLVED → VERIFIED
Updated•5 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
•