зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
420d7d08e5
Коммит
c695475926
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче