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

Handle blocked access to local/session storage #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sisou
Copy link
Member

@sisou sisou commented Oct 22, 2020

This PR enables proper handling of blocked storage access for localStorage and sessionStorage in browsers with increased privacy settings or some private browsing modes.

Currently the Keyguard throws a Key not found error from the iframe, after the user already entered their password.

This PR makes it so the Keyguard simply ignores blocked access to storage if not necessary for the Keyguard to function (TabWidthSelector, RpcServer), but fails with a new BrowserError type when it is required, as during import when we want to temporarily store the seed in sessionStorage so that we can derive all addresses during discovery in the Hub.

@sisou sisou added the enhancement New feature or request label Oct 22, 2020
@sisou sisou self-assigned this Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant