mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 368776 - Feed Preview is broken if Safari is the default reader. r=mento.
This commit is contained in:
parent
00610cd27f
commit
604da2bce2
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user