From ff866e61e53f41d4169ff7a07a56aca2dc970b74 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 14 Aug 2008 12:39:54 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20445136=20=E2=80=93=20Autoconfig=20files?= =?UTF-8?q?=20should=20be=20looked=20up=20in=20GRE=20directory,=20not=20Ap?= =?UTF-8?q?p=20directory.=20r=3Dbsmedberg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/pref/autoconfig/src/nsReadConfig.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/pref/autoconfig/src/nsReadConfig.cpp b/extensions/pref/autoconfig/src/nsReadConfig.cpp index 9da42798ae0d..c320d385b7e2 100644 --- a/extensions/pref/autoconfig/src/nsReadConfig.cpp +++ b/extensions/pref/autoconfig/src/nsReadConfig.cpp @@ -284,10 +284,13 @@ nsresult nsReadConfig::openAndEvaluateJSFile(const char *aFileName, PRInt32 obsc jsFile->AppendNative(NS_LITERAL_CSTRING("Essential Files")); #endif } else { - rv = NS_GetSpecialDirectory(NS_APP_DEFAULTS_50_DIR, + rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(jsFile)); if (NS_FAILED(rv)) return rv; + rv = jsFile->AppendNative(NS_LITERAL_CSTRING("defaults")); + if (NS_FAILED(rv)) + return rv; rv = jsFile->AppendNative(NS_LITERAL_CSTRING("autoconfig")); if (NS_FAILED(rv)) return rv;