From 0bd065bfc5fd12a0d859132dd33bb1fffdcc94bc Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Wed, 11 Jun 2003 17:45:55 +0000 Subject: [PATCH] landing neil's patch for bug 208464 - From the Start menu select Help & Support and a blank window appears. r=ssu, sr=sspitzer, a=asa git-svn-id: svn://10.0.0.236/trunk@143588 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/help/resources/content/help.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mozilla/extensions/help/resources/content/help.js b/mozilla/extensions/help/resources/content/help.js index 4551b1743e2..9bd5e1dca6c 100644 --- a/mozilla/extensions/help/resources/content/help.js +++ b/mozilla/extensions/help/resources/content/help.js @@ -96,13 +96,16 @@ function init() { helpGlossaryPanel = document.getElementById("help-glossary-tree"); helpBrowser = document.getElementById("help-content"); - var params = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); - helpFileURI = params.GetString(0); - helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); // trailing "/" included. + var helpTopic = defaultTopic; + if ("arguments" in window && window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { + helpFileURI = window.arguments[0].GetString(0); + helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); // trailing "/" included. + helpTopic = window.arguments[0].GetString(1); + } loadHelpRDF(); - displayTopic(params.GetString(1)); + displayTopic(helpTopic); // move to right end of screen var width = document.documentElement.getAttribute("width");