diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index f9e0f5a72fd7..cd5a6e315c42 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -519,6 +519,11 @@ NS_IMETHODIMP nsWebShellWindow::CreateMenu(nsIMenuBar * aMenuBar, // Make nsMenu a child of nsMenuBar aMenuBar->AddMenu(pnsMenu); + // Open the node so that the contents are visible. + nsCOMPtr menuElement = do_QueryInterface(aMenuNode); + if (menuElement) + menuElement->SetAttribute("open", "true"); + // Begin menuitem inner loop nsCOMPtr menuitemNode; aMenuNode->GetFirstChild(getter_AddRefs(menuitemNode));