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

git-svn-id: svn://10.0.0.236/trunk@219271 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com
2007-01-31 17:19:39 +00:00
parent 34c78edf3f
commit 71b8cc9607

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;
}
}
}