Bug 1511477 - Ensure that the GeckoView API always reports the URI and type of all blocked trackers r=esawin

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2018-12-14 23:55:54 +00:00
Родитель 420d7d08e5
Коммит c695475926
1 изменённых файлов: 11 добавлений и 1 удалений

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

@ -5069,7 +5069,17 @@ void nsGlobalWindowOuter::NotifyContentBlockingState(unsigned aState,
state &= ~aState;
}
if (state == oldState) {
if (state == oldState
#ifdef ANDROID
// GeckoView always needs to notify about blocked trackers, since the
// GeckoView API always needs to report the URI and type of any blocked
// tracker.
// We use a platform-dependent code path here because reporting this
// notification on desktop platforms isn't necessary and doing so can have
// a big performance cost.
&& aState != nsIWebProgressListener::STATE_BLOCKED_TRACKING_CONTENT
#endif
) {
// Avoid dispatching repeated notifications when nothing has changed
return;
}