Skip to content

Extract localStorage wrappers with try/catch #2511

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

Merged
merged 1 commit into from
May 14, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented May 12, 2020

We should fail gracefully if the browser has localStorage blocked. This wrapper will make sure to handle this case in a predictable way.

Resolves #2502

r? @pichfl

/cc @danielzgtg

@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-frontend 🐹 labels May 12, 2020
We should fail gracefully if the browser has `localStorage` blocked. This wrapper will make sure to handle this case in a predictable way.
@jtgeibel
Copy link
Member

Looks great!

@bors r+

@bors
Copy link
Contributor

bors commented May 14, 2020

📌 Commit c547d65 has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented May 14, 2020

⌛ Testing commit c547d65 with merge 660b565...

@bors
Copy link
Contributor

bors commented May 14, 2020

☀️ Test successful - checks-travis
Approved by: jtgeibel
Pushing 660b565 to master...

@bors bors merged commit 660b565 into rust-lang:master May 14, 2020
@Turbo87 Turbo87 deleted the localstorage branch June 10, 2020 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

localStorage are now required
5 participants