Closed Bug 94204 Opened 24 years ago Closed 23 years ago

Crash occurs after clicking anchor assigned a ondlbclick event

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: chrispetersen, Assigned: joki)

References

()

Details

Build: 2001080705 Platform: Mac OS 9.1, Mac OS X, and Windows NT. Expected Result: Alert dialog should be opened and user should be able to close it. No crash should occur. What I got: Application crash shortly after double clicking the anchor. Steps to reproduce: 1) Open either: http://mozilla.org/quality/browser/standards/html/a_ondblclick.html http://mozilla.org/quality/browser/standards/xhtml/transitional/a_ondblclick.xml 2) Double click on anchor to generated the ondblclick event. 3) The application should suddenly crash. Stack trace under Mac OS X: ********** Date/Time: 2001-08-07 15:33:20 -0700 PID: 236 Command: Netscape 6 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0: #0 0x02680fd4 in 0x2680fd4 () #1 0x02680fd4 in 0x2680fd4 () #2 0x02681748 in 0x2681748 () #3 0x022e4440 in TriggerLink__16nsGenericElementFP14nsIPresContext10nsLinkVerbP () #4 0x0220cdac in HandleDOMEventForAnchors__20nsGenericHTMLElementFP10nsIContent () #5 0x0221acc4 in HandleDOMEvent__19nsHTMLAnchorElementFP14nsIPresContextP7nsEve () #6 0x02312a4c in HandleDOMEvent__20nsGenericDOMDataNodeFP14nsIPresContextP7nsEv () #7 0x02315074 in HandleDOMEvent__10nsTextNodeFP14nsIPresContextP7nsEventPP11nsI () #8 0x02bdc324 in HandleEventInternal__9PresShellFP7nsEventP7nsIViewUiP13nsEvent () #9 0x02bdc188 in HandleEventWithTarget__9PresShellFP7nsEventP8nsIFrameP10nsICon () #10 0x021f93dc in CheckForAndDispatchClick__19nsEventStateManagerFP14nsIPresCont () #11 0x021f73d8 in 0x21f73d8 () #12 0x02bdc430 in HandleEventInternal__9PresShellFP7nsEventP7nsIViewUiP13nsEvent () #13 0x02bdc09c in HandleEvent__9PresShellFP7nsIViewP10nsGUIEventP13nsEventStatus () #14 0x02f96af8 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #15 0x02f96a68 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #16 0x02f96a68 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #17 0x02fa7b04 in 0x2fa7b04 () #18 0x02f95ef0 in HandleEvent__FP10nsGUIEvent () #19 0x0200cf58 in DispatchEvent__8nsWindowFP10nsGUIEventR13 () #20 0x0200d02c in DispatchWindowEvent__8nsWindowFR10nsGUIEvent () #21 0x0200d170 in DispatchMouseEvent__8nsWindowFR12nsMouseEvent () #22 0x0201cf54 in HandleMouseUpEvent__17nsMacEventHandlerFR11EventRecord () #23 0x0201b4a8 in HandleOSEvent__17nsMacEventHandlerFR11EventRecord () #24 0x0201a6a4 in HandleOSEvent__11nsMacWindowFR11EventRecord () #25 0x0201f474 in DispatchOSEvent__16nsMacMessageSinkFR11EventRecordP15OpaqueWin () #26 0x02023c78 in DispatchOSEventToRaptor__16nsMacMessagePumpFR11EventRecordP15O () #27 0x020237d8 in DoMouseUp__16nsMacMessagePumpFR11EventRecord () #28 0x02022dc8 in DispatchEvent__16nsMacMessagePumpFiP11EventRecord () #29 0x020227e8 in DoMessagePump__16nsMacMessagePumpFv () #30 0x02022078 in Run__10nsAppShellFv () #31 0x01dbc198 in Run__17nsAppShellServiceFv () #32 0x00094dfc in main1__FiPPcP11nsISupports () #33 0x00095b6c in main () Thread 1: #0 0x7000424c in _syscall () #1 0x706584b8 in _ProcessReadyEvent () #2 0x706582b0 in _CarbonSelectThreadFunc () #3 0x70014f04 in __pthread_body () Thread 2: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x70653be0 in _BSD_pthread_cond_wait () #5 0x70653bc0 in _CarbonConditionWait () #6 0x7065557c in _CarbonOperationThreadFunc () #7 0x70014f04 in __pthread_body () Thread 3: #0 0x70059b48 in _semaphore_timedwait_signal_trap () #1 0x7003f7f8 in _semaphore_timedwait_signal () #2 0x70015f68 in __pthread_cond_wait () #3 0x7003f7c4 in _pthread_cond_timedwait_relative_np () #4 0x7029b590 in _TSWaitOnConditionTimedRelative () #5 0x7029cdac in _TSWaitOnSemaphoreCommon () #6 0x702e5f98 in _TSWaitOnSemaphoreRelative () #7 0x702e7208 in _TimerThread () #8 0x70014f04 in __pthread_body () Thread 4: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x7029b550 in _TSWaitOnCondition () #5 0x7029cd94 in _TSWaitOnSemaphoreCommon () #6 0x7029cce4 in _TSWaitOnSemaphore () #7 0x7029cba8 in _AsyncFileThread () #8 0x70014f04 in __pthread_body () Thread 5: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x70653be0 in _BSD_pthread_cond_wait () #5 0x70653bc0 in _CarbonConditionWait () #6 0x70653ab4 in _CarbonInetOperThreadFunc () #7 0x70014f04 in __pthread_body () PPC Thread State: srr0: 0x02680fd4 srr1: 0x0000f030 vrsave: 0x00000000 xer: 0x2000000c lr: 0x02680fd4 ctr: 0x0011c538 mq: 0x00000000 r0: 0x02680fd4 r1: 0xbfffde40 r2: 0x02697000 r3: 0x00000000 r4: 0x00000000 r5: 0x0a000000 r6: 0x042e4bc0 r7: 0x002cb02c r8: 0x00000001 r9: 0x01f1852c r10: 0x01f18410 r11: 0x01f183e0 r12: 0x002c6c20 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000 r16: 0x002bf3dc r17: 0x002bee30 r18: 0x002bf124 r19: 0x002bf478 r20: 0x002bf95c r21: 0x02580658 r22: 0xbfffe61c r23: 0x00000000 r24: 0x042e41e0 r25: 0x00000000 r26: 0x00000001 r27: 0x00000000 r28: 0x025dc790 r29: 0x042e4bcc r30: 0x02692332 r31: 0x042e41ec **********
Severity: normal → critical
Hardware: Macintosh → All
Reassigning to event handling component.
Assignee: karnaze → joki
Component: Layout → Event Handling
QA Contact: petersen → madhur
A simular problem occurs with a button element containing a onmousedown event. http://mozilla.org/quality/browser/standards/xhtml/transitional/button_onmousedown.xml Stack trace under Mac OS X: ********** Date/Time: 2001-08-07 15:58:33 -0700 PID: 240 Command: Netscape 6 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0: #0 0x021fde9c in S () #1 0x021fde7c in S () #2 0x021fcd2c in 0x21fcd2c () #3 0x022320ec in HandleDOMEvent__19nsHTMLButtonElementFP14nsIPresContextP7nsEve () #4 0x02bdc384 in HandleEventInternal__9PresShellFP7nsEventP7nsIViewUiP13nsEvent () #5 0x02bdc09c in HandleEvent__9PresShellFP7nsIViewP10nsGUIEventP13nsEventStatus () #6 0x02fa0af8 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #7 0x02fa0a68 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #8 0x02fa0a68 in HandleEvent__6nsViewFP10nsGUIEventUiP13nsEventStatusiRi () #9 0x02fb1b04 in 0x2fb1b04 () #10 0x02f9fef0 in HandleEvent__FP10nsGUIEvent () #11 0x0200cf58 in DispatchEvent__8nsWindowFP10nsGUIEventR13 () #12 0x0200d02c in DispatchWindowEvent__8nsWindowFR10nsGUIEvent () #13 0x0200d170 in DispatchMouseEvent__8nsWindowFR12nsMouseEvent () #14 0x0201cc70 in HandleMouseDownEvent__17nsMacEventHandlerFR11EventRecord () #15 0x0201b488 in HandleOSEvent__17nsMacEventHandlerFR11EventRecord () #16 0x0201a6a4 in HandleOSEvent__11nsMacWindowFR11EventRecord () #17 0x0201f474 in DispatchOSEvent__16nsMacMessageSinkFR11EventRecordP15OpaqueWin () #18 0x02023c78 in DispatchOSEventToRaptor__16nsMacMessagePumpFR11EventRecordP15O () #19 0x02023160 in 0x2023160 () #20 0x02022db4 in DispatchEvent__16nsMacMessagePumpFiP11EventRecord () #21 0x020227e8 in DoMessagePump__16nsMacMessagePumpFv () #22 0x02022078 in Run__10nsAppShellFv () #23 0x01dbc198 in Run__17nsAppShellServiceFv () #24 0x00094dfc in main1__FiPPcP11nsISupports () #25 0x00095b6c in main () Thread 1: #0 0x7000424c in _syscall () #1 0x706584b8 in _ProcessReadyEvent () #2 0x706582b0 in _CarbonSelectThreadFunc () #3 0x70014f04 in __pthread_body () Thread 2: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x70653be0 in _BSD_pthread_cond_wait () #5 0x70653bc0 in _CarbonConditionWait () #6 0x7065557c in _CarbonOperationThreadFunc () #7 0x70014f04 in __pthread_body () Thread 3: #0 0x70059b48 in _semaphore_timedwait_signal_trap () #1 0x7003f7f8 in _semaphore_timedwait_signal () #2 0x70015f68 in __pthread_cond_wait () #3 0x7003f7c4 in _pthread_cond_timedwait_relative_np () #4 0x7029b590 in _TSWaitOnConditionTimedRelative () #5 0x7029cdac in _TSWaitOnSemaphoreCommon () #6 0x702e5f98 in _TSWaitOnSemaphoreRelative () #7 0x702e7208 in _TimerThread () #8 0x70014f04 in __pthread_body () Thread 4: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x7029b550 in _TSWaitOnCondition () #5 0x7029cd94 in _TSWaitOnSemaphoreCommon () #6 0x7029cce4 in _TSWaitOnSemaphore () #7 0x7029cba8 in _AsyncFileThread () #8 0x70014f04 in __pthread_body () Thread 5: #0 0x70059b68 in _semaphore_wait_signal_trap () #1 0x70016110 in _semaphore_wait_signal () #2 0x70015f78 in __pthread_cond_wait () #3 0x70015d18 in _pthread_cond_wait () #4 0x70653be0 in _BSD_pthread_cond_wait () #5 0x70653bc0 in _CarbonConditionWait () #6 0x70653ab4 in _CarbonInetOperThreadFunc () #7 0x70014f04 in __pthread_body () Thread 6: #0 0x700007b8 in _mach_msg_overwrite_trap () #1 0x700056e4 in _mach_msg_overwrite () #2 0x700277b0 in _thread_suspend () #3 0x70027744 in __pthread_become_available () #4 0x70027468 in _pthread_exit () #5 0x70014f08 in __pthread_body () PPC Thread State: srr0: 0x021fde9c srr1: 0x0000f030 vrsave: 0x00000000 xer: 0x0000001c lr: 0x021fde7c ctr: 0x001e8038 mq: 0x00000000 r0: 0x00000000 r1: 0xbfffe130 r2: 0x024fa000 r3: 0x00000000 r4: 0x04afe790 r5: 0xbfffe3f4 r6: 0x0000000a r7: 0xbfffe414 r8: 0x00000000 r9: 0x00000000 r10: 0xbfffe414 r11: 0x00000000 r12: 0x002adb88 r13: 0x00000000 r14: 0x00000000 r15: 0x0000012e r16: 0x04c490b0 r17: 0x00000000 r18: 0x00000000 r19: 0x002bf038 r20: 0x00000001 r21: 0x00000001 r22: 0x04d43ed0 r23: 0x0257ffec r24: 0x0254c9b8 r25: 0x002b5a5c r26: 0x0254ba5c r27: 0x0257fff4 r28: 0x0257fff0 r29: 0x04afe790 r30: 0x04c3d690 r31: 0x00000000 **********
There is no crash occuring on macOS X build ID: 2001081505 and window2000 - buildID: 2001-08-22-06trunk But on dblclick , the dialog box does not appear and the browser is directed to the url mentioned in the href attribute immediately. This bug looks similar to bug 85518
seems to work for me on mac os 9.2 with a build from last night
Tested on Win2K, MacOS9 and MacOSX. Works for all three.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
I'm not able to reproduce the crash in the 2001-11-26-17 branch (Mac OS X). Madhur, could you try on the 11-26-18 branch build under Windows ?
Chris, I checked on win2k 2001-11-26-18-6.2.1 branch build. It works fine. Not getting any crash.
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.