From 6f357ea2988b68e8cf1e1bd81426e8a86d2c7436 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 11 Dec 2005 05:37:42 +0000 Subject: [PATCH] Bug 172785 [BeOS] Allow Launch/Reveal and ShowLocation in Tracker patch by sergei_d@fi.tartu.ee r=tqh sr=neil --- .../download-manager/resources/downloadmanager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xpfe/components/download-manager/resources/downloadmanager.js b/xpfe/components/download-manager/resources/downloadmanager.js index 41f992f1eb9a..5d6aadacaeed 100644 --- a/xpfe/components/download-manager/resources/downloadmanager.js +++ b/xpfe/components/download-manager/resources/downloadmanager.js @@ -48,7 +48,8 @@ var gFileHandler = null; var gStatusBar = null; var gCannotLaunch = ((navigator.platform.indexOf("Win") == -1) && (navigator.platform.indexOf("OS/2") == -1) && - (navigator.platform.indexOf("Mac") == -1)); + (navigator.platform.indexOf("Mac") == -1) && + (navigator.platform.indexOf("BeOS") == -1)); const dlObserver = { observe: function(subject, topic, state) { @@ -261,8 +262,8 @@ var downloadViewController = { // on unix, open a browser window rooted at the parent if ((navigator.platform.indexOf("Win") == -1) && (navigator.platform.indexOf("Mac") == -1) && - (navigator.platform.indexOf("OS/2") == -1)) { - file = file.QueryInterface(Components.interfaces.nsIFile); + (navigator.platform.indexOf("OS/2") == -1) && + (navigator.platform.indexOf("BeOS") == -1)) { var parent = file.parent; if (parent) { const browserURL = "chrome://navigator/content/navigator.xul";