Closed
Bug 72488
Opened 24 years ago
Closed 22 years ago
[beos] Closing Window with open menu crashes Mozilla [@nsMenuPopupFrame::GetWidget]
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 175285
People
(Reporter: rosenauer, Assigned: sergei_d)
References
Details
(Keywords: crash)
Crash Data
Attachments
(2 files, 3 obsolete files)
167 bytes,
text/html
|
Details | |
3.42 KB,
patch
|
timeless
:
review+
timeless
:
superreview+
|
Details | Diff | Splinter Review |
On BeOS, build 2001021912, open a(nother) navigator-window. Open any menu, then
close the window (by clicking on the close-button or via shortcut, not via
menu,-). Mozilla crashes (everytime):
segment violation occurred
4081e028 read_fault
mozilla-bin:sc
frame retaddr
fd001738 ed102066 nsMenuPopupFrame::GetWidget(nsIWidget **) + 0000002e
fd001754 ed10affc
nsMenuDismissalListener::GetSubmenuWidgetChain(nsISupportsArray **) + 0000008c
fd0017c8 eca2ad66 nsWindow::DealWithPopups(unsigned long, nsPoint) + 0000011e
fd00182c eca2c31c nsWindow::CallMethod(MethodInfo *) + 00000234
fd001868 eca1e766 nsAppShell::Run(void) + 000000b2
fd001898 ec9838a8 nsAppShellService::Run(void) + 00000024
fd0018a8 8000968b main1(int, char **, nsISupports *) + 00000943
fd0019f8 80009c9b main + 0000011b
fd001a24 80006a05 _start + 00000061
mozilla-bin:regs
eax 4081e028 ebp fd001738 cs 001b
edx 82afc4cf esi 82af9874 ss 0023
ecx 00000000 edi fd001750 ds 0023
ebx ed330338 esp fd001718 es 0023
fs 1723
eflags 00010286 eip 4081e028
trap_no 0000000e error_code 00000004
mozilla-bin:ps
PID DEBUG NAME STATUS
2d5 curr mozilla-bin semaphore
2d8 BApplication semaphore
2dd moz-thread semaphore
2e1 timer roster semaphore
301 w>Prompt semaphore
30c w>Alert semaphore
3cf w>Compose: Get The Bunny semaphore
3f4 w>Downloading semaphore
403 w>Saving File semaphore
46a w>Secundum Artem - pixel32.box. semaphore
47c w>Alert semaphore
4af w>Downloading semaphore
4c3 w>Saving File semaphore
4cd w> semaphore
4cf w>Add Bookmark semaphore
4d1 w> semaphore
4d3 w> semaphore
4d6 w> semaphore
4ee w>Alert semaphore
4f1 w>Alert semaphore
548 w>::: V3X - 3D ENGINE - Realtec semaphore
55f w>BeNews - The place with more semaphore
582 w> semaphore
588 w> semaphore
589 w> semaphore
58b w> semaphore
58d w> semaphore
5b7 w>Downloading semaphore
5b8 moz-thread semaphore
5c8 w>Saving File semaphore
5d1 team 132 debugtask semaphore
mozilla-bin:
Comment 1•24 years ago
|
||
is this beos only? i'm tempted to say so since this works on win32.
Assignee: pinkerton → koehler
I would think so, and probably somewhere within the nsWindow functions that are
getting called.
Comment 4•24 years ago
|
||
linux had a similiar bug when you had a context menu open. I am not sure
if it was fixed... searching...
Comment 5•24 years ago
|
||
Confirmed on BeOS build 2001021912.
But mozilla doesn't crash immediately when you closed the second window.
You have to click in the first window after closing the second and then mozilla
crashes.
When you have only 1 mozillawindow open and you close that window (when it has
an menu open) mozilla quits nicely.
Comment 6•24 years ago
|
||
Although you can get this crash if you use the steps on bug 64022 _and_
you set '-moz-user-focus: ignore' for the element menulist.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•23 years ago
|
||
The Linux one is 86750
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
Oops, that last attachment was intended for bug 86750. It's a valid testcase for
this bug report, FWIW.
Comment 12•23 years ago
|
||
NOT an issue any more.. tested on 0.9.8 and 0.9.8+ built this morning. Marking FIXED.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 13•22 years ago
|
||
This bug is still occurring in RC1 build number 2002042715 for Beos.
Comment 14•22 years ago
|
||
I should have said in my previous comment that the steps neccessary to produce
this bug are the same as the comment made by Jeroen Oortwijn ie; "But mozilla
doesn't crash immediately when you closed the second window.
You have to click in the first window after closing the second and then mozilla
crashes.
When you have only 1 mozillawindow open and you close that window (when it has
an menu open) mozilla quits nicely."
This is occurring in RC1 for Beos, build number: 2002042715.
I am using Beos 5.03 personal edition on its own partition and a PC platform.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•22 years ago
|
Summary: Closing Window with open menu crashes Mozilla → [beos] Closing Window with open menu crashes Mozilla
Comment 15•22 years ago
|
||
i hit this today with a nightly build from this week.
[after getting libnet.so from someone]
Assignee: nobody → arougthopher
Severity: major → critical
Status: REOPENED → NEW
Summary: [beos] Closing Window with open menu crashes Mozilla → [beos] Closing Window with open menu crashes Mozilla [@nsMenuPopupFrame::GetWidget]
Assignee | ||
Comment 16•22 years ago
|
||
closes popups on window destroy
Assignee | ||
Comment 17•22 years ago
|
||
previous isn't universal approach.
Problem is that mouse event scope for PopUp/Menu is too restricted now.
SetEventMask() for mView in eWindowType_popup must be applied.
Though. additional rework of ONMOUSE: event processing in nsWindow.cpp is needed.
This scope enlargement should fix also other issues with PopUp-s
Assignee | ||
Comment 18•22 years ago
|
||
have solution, but it partially depends on bug 126843. So waitin' until 126843
check-in.
Comment 20•22 years ago
|
||
Sergei, what is the status of this? The patch you created seems to work, but
you mentioned there may be other changes required. Do you still think this way?
Assignee | ||
Comment 21•22 years ago
|
||
Yeah. I'm waiting checkins for bugs 71343 and 66809. Maybe some other, don't
recall. Idea is simple - i set/unset in nsWindow:Show() for popups mouse event
mask: B_POINTER_EVENTS. It automatically brings proper behaviour for all cases
related to popups - like in BeOS BMenu class - but needs additional filtering in
some places. Though, for safety i still call DealWithPopups in Destroy() and
CallMethod() ONACTIVATE:. Again, Win32 and MacOS code IIRC deals directly with
rollup listeners in such cases (Activation and destroy) - maybe you will look
there if it is better than calling DealWith ?
Assignee | ||
Comment 22•22 years ago
|
||
i think it is worth r= and checkin, because it will stay in further code. And
now it adds stability
Assignee | ||
Comment 23•22 years ago
|
||
Now also closes popups on window deactivation, move, resize, workspace change.
Attachment #87036 -
Attachment is obsolete: true
Assignee | ||
Comment 24•22 years ago
|
||
Now it follows overall file style - search it for "if(w && (t =
w->GetToolkit()) != 0)"
Attachment #95855 -
Attachment is obsolete: true
Comment 25•22 years ago
|
||
Comment on attachment 95870 [details] [diff] [review]
Style patch
r=timeless
sr=blizzard (ports)
Attachment #95870 -
Flags: superreview+
Attachment #95870 -
Flags: review+
Assignee | ||
Comment 26•22 years ago
|
||
Comment on attachment 95870 [details] [diff] [review]
Style patch
Noticed little issue.
Not so serious, but patch needs update.
Namelly - in chats.
If someone is slow-hand person and opens some menu for a while, when being in
chat, auto-refresh of chat window closes menu.
So patch needs adding mWindowType != eWindowType_child condition.
Attachment #95870 -
Attachment is obsolete: true
Assignee | ||
Comment 27•22 years ago
|
||
Same as previous, but triggers DealWithPopups() only for top-windows
Comment 28•22 years ago
|
||
Comment on attachment 96250 [details] [diff] [review]
patch
+ if(eWindowType_popup != mWindowType &&
eWindowType_child != mWindowType)
" &&" => " &&",
r=timeless
sr=blizzard (ports)
Attachment #96250 -
Flags: superreview+
Attachment #96250 -
Flags: review+
Assignee | ||
Comment 29•22 years ago
|
||
it ssems that better place for DeakWithPopups call is not Destroy() Method but
case ONCLOSE: in CallMethod. Though, further testing is planned
Assignee | ||
Comment 30•22 years ago
|
||
changing severity.
Needs polishing, but no such crashes more.
Severity: critical → major
Comment 31•22 years ago
|
||
*** Bug 170209 has been marked as a duplicate of this bug. ***
Comment 32•22 years ago
|
||
By the definitions on <http://bugzilla.mozilla.org/bug_status.html#severity> and
<http://bugzilla.mozilla.org/enter_bug.cgi?format=guided>, crashing and dataloss
bugs are of critical or possibly higher severity. Only changing open bugs to
minimize unnecessary spam. Keywords to trigger this would be crash, topcrash,
topcrash+, zt4newcrash, dataloss.
Severity: major → critical
Assignee | ||
Comment 33•22 years ago
|
||
*** This bug has been marked as a duplicate of 175285 ***
Status: NEW → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → DUPLICATE
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
Updated•13 years ago
|
Crash Signature: [@nsMenuPopupFrame::GetWidget]
You need to log in
before you can comment on or make changes to this bug.
Description
•