# Remaps custom stylesheet path to the GRE directory diff --git a/layout/style/GlobalStyleSheetCache.cpp b/layout/style/GlobalStyleSheetCache.cpp index 6a8507a..e3c0be4 100644 --- a/layout/style/GlobalStyleSheetCache.cpp +++ b/layout/style/GlobalStyleSheetCache.cpp @@ -5,6 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "GlobalStyleSheetCache.h" +#include "nsDirectoryServiceDefs.h" #include "nsAppDirectoryServiceDefs.h" #include "nsExceptionHandler.h" @@ -450,17 +451,17 @@ void GlobalStyleSheetCache::InitFromProfile() { nsCOMPtr contentFile; nsCOMPtr chromeFile; - NS_GetSpecialDirectory(NS_APP_USER_CHROME_DIR, getter_AddRefs(contentFile)); + NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(contentFile)); if (!contentFile) { - // if we don't have a profile yet, that's OK! + printf_stderr("Could not find GRE directory.\n"); return; } contentFile->Clone(getter_AddRefs(chromeFile)); if (!chromeFile) return; - contentFile->Append(u"userContent.css"_ns); - chromeFile->Append(u"userChrome.css"_ns); + contentFile->Append(u"content.css"_ns); + chromeFile->Append(u"chrome.css"_ns); mUserContentSheet = LoadSheetFile(contentFile, eUserSheetFeatures); mUserChromeSheet = LoadSheetFile(chromeFile, eUserSheetFeatures);