mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 17:22:04 +00:00
fix for 31267. call oncreate handler for the help menu as well. r=don, a=jar.
This commit is contained in:
parent
dd79cc915b
commit
8dd96dfa11
@ -814,6 +814,9 @@ nsEventStatus nsMenu::HelpMenuConstruct(
|
||||
|
||||
unsigned short menuIndex = 0;
|
||||
|
||||
// Fire our oncreate handler. If we're told to stop, don't build the menu at all
|
||||
PRBool keepProcessing = OnCreate();
|
||||
if ( keepProcessing ) {
|
||||
while (menuitemNode) {
|
||||
|
||||
nsCOMPtr<nsIDOMElement> menuitemElement(do_QueryInterface(menuitemNode));
|
||||
@ -840,6 +843,7 @@ nsEventStatus nsMenu::HelpMenuConstruct(
|
||||
nsCOMPtr<nsIDOMNode> oldmenuitemNode(menuitemNode);
|
||||
oldmenuitemNode->GetNextSibling(getter_AddRefs(menuitemNode));
|
||||
} // end menu item innner loop
|
||||
}
|
||||
|
||||
//printf(" Done building, mMenuItemVoidArray.Count() = %d \n", mMenuItemVoidArray.Count());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user