This commit is contained in:
warren%netscape.com 2000-08-22 02:06:14 +00:00
Родитель 9f9e527f73
Коммит 85a6b2554e
2 изменённых файлов: 22 добавлений и 2 удалений

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

@ -494,9 +494,19 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL, char** aResult)
nsCAutoString finalURL;
rv = GetBaseURL(package, provider, finalURL);
#ifdef DEBUG
if (NS_FAILED(rv)) {
NS_WARNING("chrome: failed to get base url -- using wacky default");
nsCAutoString msg = "chrome: failed to get base url";
nsXPIDLCString url;
rv = aChromeURL->GetSpec(getter_Copies(url));
if (NS_SUCCEEDED(rv)) {
msg += " for ";
msg += (const char*)url;
}
msg += " -- using wacky default";
NS_WARNING((const char*)msg);
}
#endif
if (finalURL.IsEmpty()) {
// hard-coded fallback
if (provider.Equals("skin")) {

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

@ -494,9 +494,19 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL, char** aResult)
nsCAutoString finalURL;
rv = GetBaseURL(package, provider, finalURL);
#ifdef DEBUG
if (NS_FAILED(rv)) {
NS_WARNING("chrome: failed to get base url -- using wacky default");
nsCAutoString msg = "chrome: failed to get base url";
nsXPIDLCString url;
rv = aChromeURL->GetSpec(getter_Copies(url));
if (NS_SUCCEEDED(rv)) {
msg += " for ";
msg += (const char*)url;
}
msg += " -- using wacky default";
NS_WARNING((const char*)msg);
}
#endif
if (finalURL.IsEmpty()) {
// hard-coded fallback
if (provider.Equals("skin")) {