Bug 368776 - Feed Preview is broken if Safari is the default reader. r=mento.

This commit is contained in:
mozilla.mano%sent.com 2007-01-31 17:19:39 +00:00
parent 00610cd27f
commit 604da2bce2

View File

@ -518,9 +518,12 @@ nsMacShellService::GetDefaultFeedReader(nsILocalFile** _retval)
nsCAutoString bundleIdentifier;
// don't throw if the bundle has no identifier
rv = NS_ERROR_FAILURE;
if (NS_FAILED(defaultReader->GetBundleIdentifier(bundleIdentifier)) ||
!bundleIdentifier.Equals(SAFARI_BUNDLE_IDENTIFIER))
!bundleIdentifier.Equals(SAFARI_BUNDLE_IDENTIFIER)) {
NS_ADDREF(*_retval = defaultReader);
rv = NS_OK;
}
}
}