Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PermissionError with multiple private tabs on Firefox #80

Open
noyainrain opened this issue Sep 6, 2019 · 1 comment
Open

Fix PermissionError with multiple private tabs on Firefox #80

noyainrain opened this issue Sep 6, 2019 · 1 comment

Comments

@noyainrain
Copy link
Owner

To reproduce:

  1. Open Hello in private tab
  2. Open Hello in another private tab
  3. In first tab choose Edit user settings -> Save
  4. Observe permission error notification
@noyainrain noyainrain added the bug label Sep 6, 2019
@noyainrain noyainrain changed the title PermissionError with multiple private tabs on Firefox Fix PermissionError with multiple private tabs on Firefox Sep 6, 2019
@noyainrain
Copy link
Owner Author

The behavior is caused by Firefox sharing cookies, but not localStorage between private tabs (see https://bugzilla.mozilla.org/show_bug.cgi?id=1453699 and https://bugzilla.mozilla.org/show_bug.cgi?id=1436231). It looks like this will be fixed with a new localStorage implementation.

For the steps outlined above, this is what happens behind the scenes:

  1. (Tab 1) Cookie /, localStorage / -> Log-in as new user A -> Cookie A, localStorage A
  2. (Tab 2) Cookie A, localStorage / -> Log-in as new user B -> Cookie B, localStorage B
    (Tab 1) -> Cookie B, localStorage A
  3. (Tab 1) Edit user A with authentication B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant