-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report 🐛
When third-party cookies are blocked in Chrome the main "Testing Playground" tab for the testing-playground
extension doesn't work.
The tab is empty and the console return the error:
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document
To Reproduce ✔️
- Install the
testing-playground
extension in Chrome - Go to
chrome://settings/cookies
- Select "Block third-party cookies"
- Re-load the extension
- The Elements tab is working but the main "Testing Playground" tab is empty.
Expected behavior 🤔
The extension should try to work without localStorage
if possible and display an error message informing the user to enable third-party cookies if required.
Suggested solution 🔦
Looking at issues from other extensions (like bvaughn/react-devtools-experimental#292) the only solution is to wrap all calls to localStorage
or sessionStorage
in a try/catch
.
Your Environment 💻
- browser: Chrome
- os: Mac, Linux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working