Closed Bug 130416 Opened 22 years ago Closed 22 years ago

closing print preview and triggering new window

Categories

(Core :: XUL, defect)

x86
FreeBSD
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 126675

People

(Reporter: timeless, Assigned: hyatt)

References

Details

freebsd cvs build from this morning, no interesting patches.
load mozilla [LittleMozilla]
file>print preview
ctrl-n and ctrl-w [perhaps the other way,...]

./mozilla -g -d gdb51 /root/coredumps/mozilla-bin.93804.core (wd: ~/mozilla/obj-gtk-i386-unknown-freebsd4.4/dist/bin)
where
#0  0x00000000 in ?? ()
#1  0x28a7b4e4 in nsMenuPopupFrame::FindMenuWithShortcut (this=0x8b34010, aLetter=110)
    at /home/timeless/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp:1485
#2  0x28a7b864 in nsMenuPopupFrame::ShortcutNavigation (this=0x8b34010, aLetter=110, aHandledFlag=@0xbfbfaa04)
    at /home/timeless/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp:1539
#3  0x28a8e40c in nsMenuListener::KeyPress (this=0x8b39820, aKeyEvent=0x8793d08)
    at /home/timeless/mozilla/layout/xul/base/src/nsMenuListener.cpp:245
#4  0x294e4d6d in nsEventListenerManager::HandleEvent (this=0x88c20c0, aPresContext=0x8b45800, aEvent=0xbfbff2fc,
    aDOMEvent=0xbfbfecd4, aCurrentTarget=0x859482c, aFlags=4, aEventStatus=0xbfbfefb8)
    at /home/timeless/mozilla/content/events/src/nsEventListenerManager.cpp:1643
#5  0x2968f370 in nsXULDocument::HandleDOMEvent (this=0x8594800, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/document/src/nsXULDocument.cpp:2450
#6  0x2966e4bb in nsXULElement::HandleDOMEvent (this=0x83b44c0, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3440
#7  0x2966e45b in nsXULElement::HandleDOMEvent (this=0x84cd880, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#8  0x2966e45b in nsXULElement::HandleDOMEvent (this=0x84cd9c0, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#9  0x2966e45b in nsXULElement::HandleDOMEvent (this=0x84cda80, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#10 0x2966e45b in nsXULElement::HandleDOMEvent (this=0x84cdac0, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#11 0x2966e45b in nsXULElement::HandleDOMEvent (this=0x8812dc0, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#12 0x2966e45b in nsXULElement::HandleDOMEvent (this=0x8868480, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#13 0x2966e45b in nsXULElement::HandleDOMEvent (this=0x88684c0, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:3436
#14 0x29674e10 in nsXULElement::HandleChromeEvent (this=0x88684c0, aPresContext=0x8b45800, aEvent=0xbfbff2fc,
    aDOMEvent=0xbfbfecd4, aFlags=4, aEventStatus=0xbfbfefb8)
    at /home/timeless/mozilla/content/xul/content/src/nsXULElement.cpp:4679
#15 0x29d94a4f in GlobalWindowImpl::HandleDOMEvent (this=0x85d6200, aPresContext=0x8b45800, aEvent=0xbfbff2fc,
    aDOMEvent=0xbfbfecd4, aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/dom/src/base/nsGlobalWindow.cpp:680
#16 0x29736cdd in nsDocument::HandleDOMEvent (this=0x856d000, aPresContext=0x8b45800, aEvent=0xbfbff2fc, aDOMEvent=0xbfbfecd4,
    aFlags=4, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/base/src/nsDocument.cpp:3207
#17 0x2977a947 in nsGenericElement::HandleDOMEvent (this=0x89a8f00, aPresContext=0x8b45800, aEvent=0xbfbff2fc,
    aDOMEvent=0xbfbfecd4, aFlags=1, aEventStatus=0xbfbfefb8) at /home/timeless/mozilla/content/base/src/nsGenericElement.cpp:1619
#18 0x2893e115 in PresShell::HandleEventInternal (this=0x8b45c00, aEvent=0xbfbff2fc, aView=0x8b66300, aFlags=1, aStatus=0xbfbfefb8)
    at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:6054
#19 0x2893db51 in PresShell::HandleEvent (this=0x8b45c00, aView=0x8b66300, aEvent=0xbfbff2fc, aEventStatus=0xbfbfefb8,
    aForceHandle=0, aHandled=@0xbfbfef50) at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:5977
#20 0x2a100f2f in nsViewManager::HandleEvent (this=0x8b0ba00, aView=0x8b1c900, aEvent=0xbfbff2fc, aCaptured=0)
    at /home/timeless/mozilla/view/src/nsViewManager.cpp:2041
#21 0x2a0f1255 in nsView::HandleEvent (this=0x8b1c900, aVM=0x8b0ba00, aEvent=0xbfbff2fc, aCaptured=0)
    at /home/timeless/mozilla/view/src/nsView.cpp:305
#22 0x2a100561 in nsViewManager::DispatchEvent (this=0x8b0ba00, aEvent=0xbfbff2fc, aStatus=0xbfbff144)
    at /home/timeless/mozilla/view/src/nsViewManager.cpp:1857
#23 0x2a0f0906 in HandleEvent (aEvent=0xbfbff2fc) at /home/timeless/mozilla/view/src/nsView.cpp:80
#24 0x29b547c8 in nsWidget::DispatchEvent (this=0x8b43e00, aEvent=0xbfbff2fc, aStatus=@0xbfbff234)
    at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1406
#25 0x29b54359 in nsWidget::DispatchWindowEvent (this=0x8b43e00, event=0xbfbff2fc)
    at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1294
#26 0x29b515f1 in nsWidget::OnInput (this=0x8b43e00, aEvent=@0xbfbff2fc) at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:108
#27 0x29b78d05 in nsWidget::OnKey (this=0x8b43e00, aEvent=@0xbfbff2fc) at /home/timeless/mozilla/widget/src/gtk/nsWidget.h:205
#28 0x29b4af34 in handle_key_press_event (w=0x0, event=0x8323018, p=0x85fe400)
    at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:605
#30 0x29b4b4e4 in handle_gdk_event (event=0x8323018, data=0x0) at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:778
#31 0x2852c8ec in gdk_event_dispatch () from /usr/X11R6/lib/libgdk12.so.2
#32 0x2855ad03 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
#33 0x2855b32c in g_main_iterate () from /usr/local/lib/libglib12.so.3
#34 0x2855b4c4 in g_main_run () from /usr/local/lib/libglib12.so.3
#35 0x2847b8b7 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
#36 0x29b40fed in nsAppShell::Run (this=0x8179ca0) at /home/timeless/mozilla/widget/src/gtk/nsAppShell.cpp:364
#37 0x29ad0c91 in nsAppShellService::Run (this=0x8201280) at /home/timeless/mozilla/xpfe/appshell/src/nsAppShellService.cpp:308
#38 0x0805bfe4 in main1 (argc=1, argv=0xbfbff85c, nativeApp=0x0) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1350
#39 0x0805cd45 in main (argc=1, argv=0xbfbff85c) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1698
#40 0x080569c5 in _start ()

what should be happening is that the menu is mostly deleted. but the event is still live...

(gdb) up
#1  0x28a7b4e4 in nsMenuPopupFrame::FindMenuWithShortcut (this=0x8b34010, aLetter=110)
    at /home/timeless/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp:1485
1485      immediateParent->FirstChild(mPresContext, nsnull, &currFrame);
Current language:  auto; currently c++
(gdb) p immediateParent
$1 = (nsIFrame *) 0x8b34010
(gdb) l
1480      GetInsertionPoint(shell, this, nsnull, &immediateParent);
1481      if (!immediateParent)
1482        immediateParent = this;
1483
1484      nsIFrame* currFrame;
1485      immediateParent->FirstChild(mPresContext, nsnull, &currFrame);
1486
1487      while (currFrame) {
1488        nsCOMPtr<nsIContent> current;
1489        currFrame->GetContent(getter_AddRefs(current));
(gdb) p *immediateParent
$2 = {<nsISupports> = {_vptr$ = 0x863a78c}, mRect = {x = 0, y = 308, width = 1050, height = 420}, mContent = 0x0,
  mStyleContext = 0x0, mParent = 0x857b500, mNextSibling = 0x0, mState = 2156142640}
(gdb) x/wa *(void**)immediateParent
0x863a78c:      0x88c9ca4
(gdb) p this
$3 = (nsMenuPopupFrame *) 0x8b34010
*** Bug 130417 has been marked as a duplicate of this bug. ***

*** This bug has been marked as a duplicate of 126675 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
vrfy dupe
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.