Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh

Differential Revision: https://phabricator.services.mozilla.com/D11122
This commit is contained in:
Ehsan Akhgari
2018-11-20 14:34:49 +00:00
parent 32160e4d1d
commit 0b6dceed64
35 changed files with 374 additions and 86 deletions

View File

@@ -1498,6 +1498,14 @@ nsDocShell::GetHasForeignCookiesBeenBlocked(bool* aHasForeignCookiesBeenBlocked)
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::GetHasCookiesLoaded(bool* aHasCookiesLoaded)
{
nsCOMPtr<nsIDocument> doc(GetDocument());
*aHasCookiesLoaded = doc && doc->GetHasCookiesLoaded();
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::GetAllowPlugins(bool* aAllowPlugins)
{