From 4452a449eb05978c52a58ee375b61bf6d9e6e61b Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sun, 23 Sep 2018 00:11:47 -0400 Subject: [PATCH] Bug 1493563 - Part 6: Only restrict notifying same loading URI channels to tracking protection notifications; r=baku This check was originally added for tracking protection, and we need to keep the state of the document updated for the rest of our blocking states even for third-party channels. Differential Revision: https://phabricator.services.mozilla.com/D6596 --- dom/base/nsGlobalWindowOuter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/base/nsGlobalWindowOuter.cpp b/dom/base/nsGlobalWindowOuter.cpp index d5a495a43ed6..58bb8a696173 100644 --- a/dom/base/nsGlobalWindowOuter.cpp +++ b/dom/base/nsGlobalWindowOuter.cpp @@ -5295,7 +5295,8 @@ nsGlobalWindowOuter::NotifyContentBlockingState(unsigned aState, // To prevent showing the TrackingProtection UI on the wrong page, we need to // check that the loading URI for the channel is the same as the URI currently // loaded in the document. - if (!SameLoadingURI(doc, aChannel)) { + if (!SameLoadingURI(doc, aChannel) && + aState == nsIWebProgressListener::STATE_BLOCKED_TRACKING_CONTENT) { return; }