Open
Bug 328916
Opened 19 years ago
Updated 3 years ago
Report to consoleservice: WARNING: A XUL element is attached to a command that doesn't exist!.
Categories
(Core :: XUL, enhancement)
Tracking
()
NEW
People
(Reporter: timeless, Unassigned)
Details
(Keywords: helpwanted)
Currently, it's possible to get this warning, but if you're not running under a debugger, you get no useful feedback, as PresShell::HandleDOMEventWithTarget ignores the result (and wouldn't know the useful details anyway).
nsXULElement::HandleDOMEvent should use the console service to report this problem.
00 ntdll!DbgBreakPoint (FPO: [0,0,0])
01 xpcom_core!Break(char * aMsg = 0x0012ecc0 "WARNING: A XUL element is attached to a command that doesn't exist!.: file r:/mozilla/content/xul/content/src/nsXULElement.cpp, line 1713")+0x203 (FPO: [Non-Fpo]) (CONV: cdecl) [r:\mozilla\xpcom\base\nsdebugimpl.cpp @ 475]
02 xpcom_core!NS_DebugBreak_P(unsigned int aSeverity = 0, char * aStr = 0x01e834c8 "A XUL element is attached to a command that doesn't exist!.", char * aExpr = 0x00000000 "", char * aFile = 0x01e83494 "r:/mozilla/content/xul/content/src/nsXULElement.cpp", int aLine = 1713)+0x2ec (FPO: [Non-Fpo]) (CONV: cdecl) [r:\mozilla\xpcom\base\nsdebugimpl.cpp @ 358]
03 gklayout!nsXULElement::HandleDOMEvent(class nsPresContext * aPresContext = 0x02a10028, class nsEvent * aEvent = 0x0012f3a8, class nsIDOMEvent ** aDOMEvent = 0x00000000, unsigned int aFlags = 1, nsEventStatus * aEventStatus = 0x0012f3a4)+0x25f (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\content\xul\content\src\nsxulelement.cpp @ 1713]
04 gklayout!PresShell::HandleDOMEventWithTarget(class nsIContent * aTargetContent = 0x038fb0f8, class nsEvent * aEvent = 0x0012f3a8, nsEventStatus * aStatus = 0x0012f3a4)+0x59 (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\layout\base\nspresshell.cpp @ 6164]
05 gklayout!nsMenuFrame::Execute(class nsGUIEvent * aEvent = 0x0012f7c0)+0x29e (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\layout\xul\base\src\nsmenuframe.cpp @ 1721]
06 gklayout!nsMenuFrame::HandleEvent(class nsPresContext * aPresContext = 0x02a10028, class nsGUIEvent * aEvent = 0x0012f7c0, nsEventStatus * aEventStatus = 0x0012f5a0)+0x25f (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\layout\xul\base\src\nsmenuframe.cpp @ 521]
07 gklayout!PresShell::HandleEventInternal(class nsEvent * aEvent = 0x0012f7c0, class nsIView * aView = 0x03931cc8, unsigned int aFlags = 1, nsEventStatus * aStatus = 0x0012f5a0)+0x2d2 (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\layout\base\nspresshell.cpp @ 6108]
08 gklayout!PresShell::HandlePositionedEvent(class nsIView * aView = 0x03931cc8, class nsIFrame * aTargetFrame = 0x0390fb10, class nsGUIEvent * aEvent = 0x0012f7c0, nsEventStatus * aEventStatus = 0x0012f5a0)+0x162 (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\layout\base\nspresshell.cpp @ 5964]
09 gklayout!PresShell::HandleEvent(class nsIView * aView = 0x03931cc8, class nsGUIEvent * aEvent = 0x0012f7c0, nsEventStatus * aEventStatus = 0x0012f5a0)+0x27f (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\layout\base\nspresshell.cpp @ 5775]
0a gklayout!nsViewManager::HandleEvent(class nsView * aView = 0x03931cc8, struct nsPoint aPoint = struct nsPoint, class nsGUIEvent * aEvent = 0x0012f7c0, int aCaptured = 0)+0x57 (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\view\src\nsviewmanager.cpp @ 1725]
0b gklayout!nsViewManager::DispatchEvent(class nsGUIEvent * aEvent = 0x0012f7c0, nsEventStatus * aStatus = 0x0012f6c0)+0xc2b (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\view\src\nsviewmanager.cpp @ 1678]
0c gklayout!HandleEvent(class nsGUIEvent * aEvent = 0x0012f7c0)+0x44 (FPO: [Non-Fpo]) (CONV: cdecl) [r:\mozilla\view\src\nsview.cpp @ 174]
0d gkwidget!nsWindow::DispatchEvent(class nsGUIEvent * event = 0x0012f7c0, nsEventStatus * aStatus = 0x0012f758)+0xb5 (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 1037]
0e gkwidget!nsWindow::DispatchWindowEvent(class nsGUIEvent * event = 0x0012f7c0)+0x24 (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 1058]
0f gkwidget!nsWindow::DispatchMouseEvent(unsigned int aEventType = 0x12d, unsigned int wParam = 0, long lParam = 1572880)+0x601 (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 5954]
10 gkwidget!ChildWindow::DispatchMouseEvent(unsigned int aEventType = 0x12d, unsigned int wParam = 0, long lParam = 1572880)+0x8f (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 6136]
11 gkwidget!nsWindow::ProcessMessage(unsigned int msg = 0x202, unsigned int wParam = 0, long lParam = 1572880, long * aRetValue = 0x0012fc84)+0xabc (FPO: [Non-Fpo]) (CONV: thiscall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 4415]
12 gkwidget!nsWindow::WindowProc(struct HWND__ * hWnd = 0x00760bee, unsigned int msg = 0x202, unsigned int wParam = 0, long lParam = 1572880)+0x136 (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\widget\src\windows\nswindow.cpp @ 1226]
13 USER32!InternalCallWinProc+0x28
14 USER32!UserCallWinProcCheckWow+0x150 (FPO: [Non-Fpo])
15 USER32!DispatchMessageWorker+0x306 (FPO: [Non-Fpo])
16 USER32!DispatchMessageW+0xf (FPO: [Non-Fpo])
17 gkwidget!nsAppShell::Run(void)+0x108 (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\widget\src\windows\nsappshell.cpp @ 135]
18 appcomps!nsAppStartup::Run(void)+0x1e (FPO: [Non-Fpo]) (CONV: stdcall) [r:\mozilla\xpfe\components\startup\src\nsappstartup.cpp @ 208]
19 seamonkey!main1(int argc = 3, char ** argv = 0x00a584f8, class nsISupports * nativeApp = 0x00d0cfe0)+0xc35 (FPO: [Non-Fpo]) (CONV: cdecl) [r:\mozilla\xpfe\bootstrap\nsapprunner.cpp @ 1248]
1a seamonkey!main(int argc = 3, char ** argv = 0x00a584f8)+0x1c7 (FPO: [Non-Fpo]) (CONV: cdecl) [r:\mozilla\xpfe\bootstrap\nsapprunner.cpp @ 1762]
1b seamonkey!mainCRTStartup(void)+0x12c (FPO: [Non-Fpo]) (CONV: cdecl) [f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c @ 398]
1c kernel32!BaseProcessStart+0x23 (FPO: [Non-Fpo])
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•