Bug 1073134 - Be more permissive on OSX 10.9.5 when parental control is on. r=jdm
--- a/toolkit/components/parentalcontrols/nsParentalControlsServiceCocoa.mm
+++ b/toolkit/components/parentalcontrols/nsParentalControlsServiceCocoa.mm
@@ -27,32 +27,35 @@ nsParentalControlsService::GetParentalCo
{
*aResult = mEnabled;
return NS_OK;
}
NS_IMETHODIMP
nsParentalControlsService::GetBlockFileDownloadsEnabled(bool *aResult)
{
- return NS_ERROR_NOT_AVAILABLE;
+ *aResult = false;
+ return NS_OK;
}
NS_IMETHODIMP
nsParentalControlsService::GetLoggingEnabled(bool *aResult)
{
- return NS_ERROR_NOT_AVAILABLE;
+ *aResult = false;
+ return NS_OK;
}
NS_IMETHODIMP
nsParentalControlsService::Log(int16_t aEntryType,
bool blocked,
nsIURI *aSource,
nsIFile *aTarget)
{
- return NS_ERROR_NOT_AVAILABLE;
+ // silently drop on the floor
+ return NS_OK;
}
NS_IMETHODIMP
nsParentalControlsService::RequestURIOverride(nsIURI *aTarget,
nsIInterfaceRequestor *aWindowContext,
bool *_retval)
{
return NS_ERROR_NOT_AVAILABLE;