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

Proposal: if extension has "storage" permission it should be allowed to use Web Storage API and Cookies API #223

Open
bershanskiy opened this issue Jun 3, 2022 · 1 comment
Labels
proposal Proposal for a change or new feature

Comments

@bershanskiy
Copy link
Member

bershanskiy commented Jun 3, 2022

Problem

When the user blocks third-party cookies or all cookies, this block also applies to extension pages (background, action popup, injected frames, DevTools frames). This is counter-intuitive to both users and developers and can break extensions.

Background

This incompatibility always existed, but it might become more common as browsers move to block third-party cookies.

For example, this exact problem was reported to React DevTools engineers back in 2014 (fixed by avoiding Web Storage API and Cookies API): facebook/react-devtools#8.

Chromium bugs explaining the problem:

Alternative fix

Users can grant extension permission to use third-party cookies by going to browser settings and adding an exclusion. This is very counter-intuitive.

Repro steps

Please see linked Chromium bugs.

Proposal

Extensions should be able to access Web Storage API and Cookies API if the extension has "storage" permission because:

  • this relaxation does not harm user privacy since the extension can always emulate Web Storage API and Cookies API by saving data to chrome.storage.local
  • this relaxation fixes some compatibility issues for users with strict privacy setting
@xeenon xeenon added the proposal Proposal for a change or new feature label Aug 31, 2022
@bershanskiy
Copy link
Member Author

I just checked this again and apparently Chrome currently allows access to Browser Storage API (but not cookies) ewen when cookies are disabled globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposal for a change or new feature
Projects
None yet
Development

No branches or pull requests

2 participants