Closed Bug 14039 Opened 21 years ago Closed 21 years ago

Crash by pressing Enter key on Open Web Location dialog

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: law, Assigned: buster)

Details

Steps to reproduce:

1. Start apprunner
2. Choose File->Open Web Location.
3. Type a URL
4. Press Enter key (clicking OK works fine).

Result: Crash (stack trace below).

nsEnderKeyListener::KeyUp(nsIDOMEvent * 0x031026b0) line 1948 + 35 bytes
nsEventListenerManager::HandleEvent(nsIPresContext & {...}, nsEvent *
0x0012fae4, nsIDOMEvent * * 0x0012f834, unsigned int 0x00000002, nsEventStatus &
nsEventStatus_eIgnore) line 778 + 17 bytes
nsDocument::HandleDOMEvent(nsDocument * const 0x03056060, nsIPresContext &
{...}, nsEvent * 0x0012fae4, nsIDOMEvent * * 0x0012f834, unsigned int
0x00000002, nsEventStatus & nsEventStatus_eIgnore) line 2356
nsHTMLHtmlElement::HandleDOMEvent(nsHTMLHtmlElement * const 0x0305552c,
nsIPresContext & {...}, nsEvent * 0x0012fae4, nsIDOMEvent * * 0x0012f834,
unsigned int 0x00000002, nsEventStatus & nsEventStatus_eIgnore) line 186 + 41
bytes
nsGenericElement::HandleDOMEvent(nsIPresContext & {...}, nsEvent * 0x0012fae4,
nsIDOMEvent * * 0x0012f834, unsigned int 0x00000002, nsEventStatus &
nsEventStatus_eIgnore) line 789 + 39 bytes
nsHTMLBodyElement::HandleDOMEvent(nsHTMLBodyElement * const 0x030d62ac,
nsIPresContext & {...}, nsEvent * 0x0012fae4, nsIDOMEvent * * 0x0012f834,
unsigned int 0x00000002, nsEventStatus & nsEventStatus_eIgnore) line 712
nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext & {...}, nsEvent *
0x0012fae4, nsIDOMEvent * * 0x0012f834, unsigned int 0x00000001, nsEventStatus &
nsEventStatus_eIgnore) line 747 + 39 bytes
nsTextNode::HandleDOMEvent(nsTextNode * const 0x030dae4c, nsIPresContext &
{...}, nsEvent * 0x0012fae4, nsIDOMEvent * * 0x00000000, unsigned int
0x00000001, nsEventStatus & nsEventStatus_eIgnore) line 201
PresShell::HandleEvent(PresShell * const 0x030d5534, nsIView * 0x030d85c0,
nsGUIEvent * 0x0012fae4, nsEventStatus & nsEventStatus_eIgnore) line 2010 + 39
bytes
nsView::HandleEvent(nsView * const 0x030d85c0, nsGUIEvent * 0x0012fae4, unsigned
int 0x00000008, nsEventStatus & nsEventStatus_eIgnore, int & 0x00000000) line
828
nsView::HandleEvent(nsView * const 0x030d7770, nsGUIEvent * 0x0012fae4, unsigned
int 0x00000008, nsEventStatus & nsEventStatus_eIgnore, int & 0x00000000) line
813
nsView::HandleEvent(nsView * const 0x030d7850, nsGUIEvent * 0x0012fae4, unsigned
int 0x00000008, nsEventStatus & nsEventStatus_eIgnore, int & 0x00000000) line
813
nsView::HandleEvent(nsView * const 0x030d5950, nsGUIEvent * 0x0012fae4, unsigned
int 0x0000001c, nsEventStatus & nsEventStatus_eIgnore, int & 0x00000000) line
813
nsViewManager::DispatchEvent(nsViewManager * const 0x030d5e50, nsGUIEvent *
0x0012fae4, nsEventStatus & nsEventStatus_eIgnore) line 1644
HandleEvent(nsGUIEvent * 0x0012fae4) line 63
nsWindow::DispatchEvent(nsWindow * const 0x030d75e4, nsGUIEvent * 0x0012fae4,
nsEventStatus & nsEventStatus_eIgnore) line 332 + 10 bytes
nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012fae4) line 353
nsWindow::DispatchKeyEvent(unsigned int 0x00000084, unsigned short 0x000d,
unsigned int 0x0000000d) line 1841 + 15 bytes
nsWindow::OnKeyUp(unsigned int 0x0000000d, unsigned int 0x0000001c) line 2103
nsWindow::ProcessMessage(unsigned int 0x00000101, unsigned int 0x0000000d, long
0xc01c0001, long * 0x0012fe08) line 2336 + 40 bytes
nsWindow::WindowProc(HWND__ * 0x002b06de, unsigned int 0x00000101, unsigned int
0x0000000d, long 0xc01c0001) line 401 + 27 bytes
USER32! 77e713ed()
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
fixed. bad copy-and-paste of some event propogation code.  the gfx text control
event listeners exist just to propogate the event from the embedded shell
to the content, and should not pass the event back to the frame itself, except
for keyPress (for default action).
Status: RESOLVED → VERIFIED
verified in 9/17 build.
You need to log in before you can comment on or make changes to this bug.