mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
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:
parent
6c9d7c21d6
commit
39358a724e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user