Closed Bug 336662 Opened 18 years ago Closed 17 years ago

menu-button with context="_child" crashes on shutdown [@ nsFrameManager::CaptureFrameStateFor]

Categories

(Core :: Layout, defect)

1.8 Branch
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: pamg.bugs, Unassigned)

References

Details

(Keywords: crash, testcase)

Crash Data

Attachments

(2 files)

Using a XUL layout with an element of the form <toolbarbutton type="menu-button" context="_child"> will produce extraneous menus in some cases, and will crash the browser on shutdown in every case. Steps to Reproduce: (A) To crash the browser: 1. Load enclosed test case contextmenu-test.xul in Firefox 2. Context-click on the small button to the left of the arrow to display the two-item context menu 3. Click elsewhere to hide the menu 4. Quit the app Result: App crashes on shutdown. See enclosed call trace. (B) To see extraneous menus: Unfortunately, I have not been able to produce a reduced test case for this situation. It can be generated using the 1.8 FF branch. 1. In mozilla/browser/components/search/content/search.xml, just above the location of the XXX in the "searchbar" binding, insert |context="_child"| into the toolbarbutton element 2. Build and launch the app 3. Right-click on the magnifying glass at the right end of the searchbar, showing its context menu, then click elsewhere to hide it again 4. Hover over another section of the searchbox text field Result: The same context menu appears as you hover, overlaid on the "Search ___" tooltip that should correctly show there Build (nightly): Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20060504 BonEcho/2.0a1 Note: The (B) case described here will not be observable until the patch for bug 335441 has been checked in.
Attached file Reduced test case
Blocks: 336667
Seems related to bug 288763.
Depends on: 288763
Severity: normal → critical
Keywords: crash
*** Bug 345659 has been marked as a duplicate of this bug. ***
Blocks: 345257
*** Bug 345936 has been marked as a duplicate of this bug. ***
Summary: menu-button with context="_child" crashes on shutdown → menu-button with context="_child" crashes on shutdown [@ nsFrameManager::CaptureFrameStateFor]
No longer blocks: 345257
So the testcase doesn't crash anymore on current trunk builds, because the context menu won't open anymore. I think that should work, not? I think this regressed with the fix for bug 288763.
No it should not open since menus as context menus are prevented because of those crashes. I'd like to get that fixed so that we wouldn't have this limitation, but until someone (I? ;) ) come up with some solution, better to make sure that there are no crashes.
Depends on: 279703
Should now be fixed with bug 279703.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Crash Signature: [@ nsFrameManager::CaptureFrameStateFor]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: