From 8a59b4e5774420ee349ba8ab4e44de8896815121 Mon Sep 17 00:00:00 2001 From: "dolske%mozilla.com" Date: Sun, 15 Jul 2007 01:34:08 +0000 Subject: [PATCH] Bug 386283: startup warning at nsChromeRegistry.cpp, line 1249. r=benjamin, sr=biesi --- chrome/src/nsChromeRegistry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp index 604892997da..fda2df312c5 100644 --- a/chrome/src/nsChromeRegistry.cpp +++ b/chrome/src/nsChromeRegistry.cpp @@ -1145,8 +1145,12 @@ nsChromeRegistry::CheckForNewChrome() linstalled->SetNativeLeafName(NS_LITERAL_CSTRING("installed-chrome.txt")); + rv = linstalled->Exists(&exists); + NS_ENSURE_SUCCESS(rv, rv); + // process installed-chrome.txt into app-chrome.manifest - ProcessNewChromeFile(linstalled, manifestURI); + if (exists) + ProcessNewChromeFile(linstalled, manifestURI); } nsCOMPtr dirSvc (do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID));