Bug 799152 - nsExpandedPrincipal should use default extendedOrigin/appId/appStatus/isInBrowserElement. r=bholley a=blocking-basecamp

This commit is contained in:
Mounir Lamouri 2012-10-11 13:54:54 +01:00
Родитель 7699c4ab04
Коммит 966758537c
1 изменённых файлов: 7 добавлений и 4 удалений

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

@ -1521,25 +1521,28 @@ nsExpandedPrincipal::GetWhiteList(nsTArray<nsCOMPtr<nsIPrincipal> >** aWhiteList
NS_IMETHODIMP
nsExpandedPrincipal::GetExtendedOrigin(nsACString& aExtendedOrigin)
{
return NS_ERROR_NOT_AVAILABLE;
return GetOrigin(getter_Copies(aExtendedOrigin));
}
NS_IMETHODIMP
nsExpandedPrincipal::GetAppStatus(uint16_t* aAppStatus)
{
return NS_ERROR_NOT_AVAILABLE;
*aAppStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
return NS_OK;
}
NS_IMETHODIMP
nsExpandedPrincipal::GetAppId(uint32_t* aAppId)
{
return NS_ERROR_NOT_AVAILABLE;
*aAppId = nsIScriptSecurityManager::NO_APP_ID;
return NS_OK;
}
NS_IMETHODIMP
nsExpandedPrincipal::GetIsInBrowserElement(bool* aIsInBrowserElement)
{
return NS_ERROR_NOT_AVAILABLE;
*aIsInBrowserElement = false;
return NS_OK;
}
NS_IMETHODIMP