This commit is contained in:
hyatt%netscape.com 2000-05-15 00:48:51 +00:00
Родитель 3d8a12dd7f
Коммит d8232452e3
2 изменённых файлов: 38 добавлений и 2 удалений

Просмотреть файл

@ -417,13 +417,31 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
nsCAutoString finalURL;
GetBaseURL(package, provider, finalURL);
if (finalURL.IsEmpty()) {
/* hard coded, for now. */
// hard-coded fallback
if (provider.Equals("skin")) {
finalURL = "resource:/chrome/skins/modern/";
}
#ifdef XP_MAC
else {
finalURL = "resource:/chrome/";
}
#else
else if (provider.Equals("locale")) {
finalURL = "resource:/chrome/locales/en-US/";
}
else if (package.Equals("aim")) {
finalURL = "resource:/chrome/packages/aim/";
}
else if (package.Equals("messenger")) {
finalURL = "resource:/chrome/packages/messenger/";
}
else if (package.Equals("global")) {
finalURL = "resource:/chrome/packages/widget-toolkit/";
}
else {
finalURL = "resource:/chrome/packages/core/";
}
#endif
}
finalURL += package;

Просмотреть файл

@ -417,13 +417,31 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
nsCAutoString finalURL;
GetBaseURL(package, provider, finalURL);
if (finalURL.IsEmpty()) {
/* hard coded, for now. */
// hard-coded fallback
if (provider.Equals("skin")) {
finalURL = "resource:/chrome/skins/modern/";
}
#ifdef XP_MAC
else {
finalURL = "resource:/chrome/";
}
#else
else if (provider.Equals("locale")) {
finalURL = "resource:/chrome/locales/en-US/";
}
else if (package.Equals("aim")) {
finalURL = "resource:/chrome/packages/aim/";
}
else if (package.Equals("messenger")) {
finalURL = "resource:/chrome/packages/messenger/";
}
else if (package.Equals("global")) {
finalURL = "resource:/chrome/packages/widget-toolkit/";
}
else {
finalURL = "resource:/chrome/packages/core/";
}
#endif
}
finalURL += package;