Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Blocking rules are not limited to private tabs #10829

Closed
NejcZdovc opened this issue Sep 6, 2017 · 3 comments
Closed

Blocking rules are not limited to private tabs #10829

NejcZdovc opened this issue Sep 6, 2017 · 3 comments

Comments

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Sep 6, 2017

Test plan

#10836 (comment)


Describe the issue you encountered:

  12) Bravery Panel Adblock stats iframe tests detects blocked elements in iframe in private tab:
     Promise was rejected with the following reason: timeout
  Error

So what is happening here is that you set ad blocking rule in private tab and this rule is applied outside private tab as well.

Is this something that is intended? cc @diracdeltas

@NejcZdovc NejcZdovc added this to the 0.21.x (Nightly Channel) milestone Sep 6, 2017
@NejcZdovc NejcZdovc self-assigned this Sep 6, 2017
@diracdeltas
Copy link
Member

In general, site settings that are changed in a private tab should be written to temporarySiteSettings, not siteSettings. siteSettings and temporarySiteSettings are merged for private tabs, but only siteSettings applies to normal tabs.

so settings changed in private tabs should not affect regular tabs.

@NejcZdovc
Copy link
Contributor Author

ok, so this is a regression then. Will look into it

@NejcZdovc
Copy link
Contributor Author

NejcZdovc commented Sep 7, 2017

this bug was introduced with #10289, problem is that when we cache bravery settings but we don't add private flag

@NejcZdovc NejcZdovc modified the milestones: 0.18.x Hotfix 2 (Release Channel), 0.21.x (Nightly Channel) Sep 7, 2017
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Sep 7, 2017
diracdeltas added a commit that referenced this issue Sep 7, 2017
Fixes cache problem with private tabs for siteSettings
diracdeltas added a commit that referenced this issue Sep 7, 2017
Fixes cache problem with private tabs for siteSettings
diracdeltas added a commit that referenced this issue Sep 7, 2017
Fixes cache problem with private tabs for siteSettings
diracdeltas added a commit that referenced this issue Sep 7, 2017
Fixes cache problem with private tabs for siteSettings
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.