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

Differential Revision: https://phabricator.services.mozilla.com/D11122
This commit is contained in:
Ehsan Akhgari
2018-11-09 15:36:02 +00:00
parent 061becbb2a
commit 75f342fb34
29 changed files with 350 additions and 69 deletions

View File

@@ -1511,6 +1511,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)
{