Closed Bug 80433 Opened 23 years ago Closed 18 years ago

We create the items in the Mac help menu several times on startup

Categories

(Core Graveyard :: Widget: Mac, defect)

PowerPC
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID
Future

People

(Reporter: lordpixel, Assigned: saari)

Details

I've recently had occassion to add some debugging output to nsMenuItem.cpp and 
nsMenu.cpp ::create()

It seems we create the help menu and the 3 items on it (About Mozilla, About 
Plugins, Release Notes) 4 or 5 times over during startup *and* every time we 
switch into Mozilla.

Is this a bug? Can't be helping startup speed, though I doubt its significant...
Because of the way we're hacking around with the menu manager and the dynamic
MDEF, we need to keep creating the Help menu. I know it sucks, but there is no
other way around it that I've found. 
Target Milestone: --- → Future
Is this bug relevant any more? Are there MDEFs in OS X?
Yes, I think so.

Recall the back end has been converted to the Unix one, but the front end is
still the same Carbon code it always was. From a casual look at nsMenu.cpp, not
much seems to have changed.
This is now invalid.  Help menus are no longer treated specially, they're now just regular menus that happen to be named "Help".  We build one for each window, including the hidden window (for a total of two on a normal startup), and do not waste time rebuilding them on application or window switch.
Status: NEW → RESOLVED
Closed: 18 years ago
Component: XP Toolkit/Widgets: Menus → Widget: Mac
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.