Bug 1625585 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

If we add a session to the exception list, after reloading this session has the same tracking protection settings and it shouldn't.

For example if you apply the below settings, this is the equivalent to strict settings in Fenix, with them many ads doesn't show.  

```
        fun setStrict() {
            geckoSession.settings.useTrackingProtection = true

            val etpLevel = ContentBlocking.EtpLevel.STRICT
            val getAntiTrackingPolicy =
                    AD + ANALYTIC + SOCIAL + TEST + CRYPTOMINING + FINGERPRINTING + STP

            runtime!!.settings.contentBlocking.setEnhancedTrackingProtectionLevel(etpLevel)
            runtime!!.settings.contentBlocking.setStrictSocialTrackingProtection(true)
            runtime!!.settings.contentBlocking.setAntiTracking(getAntiTrackingPolicy)
            runtime!!.settings.contentBlocking.setCookieBehavior(ACCEPT_NON_TRACKERS)
            geckoSession.reload()
        }
```

But if you apply this settings to a session that is already in the exception, after reloading ads should start showing, but they aren't. For testing you can use this [website](https://remolacha.net/2020/03/coronavirus-no-fueron-los-murcielagos-fue-esta-especie/), it has an ad banner at the bottom of the page, when the strict setting is applied the banner is hidden, but when we add its session to the exception list the banner should show again.
If we add a session to the exception list, after reloading this session has the same tracking protection settings and it shouldn't.

For example if you apply the below settings, this is the equivalent to strict settings in Fenix, with them many ads doesn't show.  

```
        fun setStrict() {
            geckoSession.settings.useTrackingProtection = true

            val etpLevel = ContentBlocking.EtpLevel.STRICT
            val getAntiTrackingPolicy =
                    AD + ANALYTIC + SOCIAL + TEST + CRYPTOMINING + FINGERPRINTING + STP

            runtime!!.settings.contentBlocking.setEnhancedTrackingProtectionLevel(etpLevel)
            runtime!!.settings.contentBlocking.setStrictSocialTrackingProtection(true)
            runtime!!.settings.contentBlocking.setAntiTracking(getAntiTrackingPolicy)
            runtime!!.settings.contentBlocking.setCookieBehavior(ACCEPT_NON_TRACKERS)
            geckoSession.reload()
        }
```

But if you apply this settings to a session that is already in the exception, after reloading ads should start showing, but they aren't. For testing you can use this [website](https://remolacha.net/2020/03/coronavirus-no-fueron-los-murcielagos-fue-esta-especie/), it has an ad banner at the bottom of the page, when the strict setting is applied the banner is hidden, but when we add its session to the exception list the banner should show again.

Global settings shouldn't affect sessions on exception list.

Back to Bug 1625585 Comment 0