From ffca5d9a4d43bdad899d0df2e7badf6031bac92b Mon Sep 17 00:00:00 2001 From: "hyatt@netscape.com" Date: Fri, 4 Jun 1999 22:52:35 +0000 Subject: [PATCH] Fix to make sure Mac RDF menus still show up. --- xpfe/appshell/src/nsWebShellWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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));