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
This commit is contained in:
Ehsan Akhgari 2018-09-23 00:11:47 -04:00
Родитель f0108e78c2
Коммит 4452a449eb
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;
}