Bug 1481252 - Part 2: Report Tracking Protection status to docshell; r=valentin,francois

Differential Revision: https://phabricator.services.mozilla.com/D3025

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Liang-Heng Chen 2018-08-13 10:23:57 +00:00
parent 6c9d7c21d6
commit 39358a724e

View File

@ -873,6 +873,8 @@ nsChannelClassifier::SetBlockedContent(nsIChannel *channel,
nsCOMPtr<nsIDocument> doc = docShell->GetDocument();
NS_ENSURE_TRUE(doc, NS_OK);
doc->IncrementTrackerCount(true);
unsigned state;
if (aErrorCode == NS_ERROR_TRACKING_URI) {
state = nsIWebProgressListener::STATE_BLOCKED_TRACKING_CONTENT;