Skip to content

Request persistent storage on Electron#11052

Merged
dbkr merged 1 commit intodevelopfrom
dbkr/persist_storage_on_desktop
Oct 4, 2019
Merged

Request persistent storage on Electron#11052
dbkr merged 1 commit intodevelopfrom
dbkr/persist_storage_on_desktop

Conversation

@dbkr
Copy link
Copy Markdown
Member

@dbkr dbkr commented Oct 4, 2019

It's still not 100% clear whether storage is always persistent on
Electron, but we seem to be getting reports of it being deleted in
the wild on Electron, so let's try calling the API to request
persistent storage. It won't pop up a dialog on Electron. In the
worst case it will give us some logging so we know what the API calls
return.

We could do this on non-desktop too but it's a bit of a mess because
Firefox prompts the user but Chrome makes a decision itself based on
how much the user visits the site.

It's still not 100% clear whether storage is always persistent on
Electron, but we seem to be getting reports of it being deleted in
the wild on Electron, so let's try calling the API to request
persistent storage. It won't pop up a dialog on Electron. In the
worst case it will give us some logging so we know what the API calls
return.

We could do this on non-desktop too but it's a bit of a mess because
Firefox prompts the user but Chrome makes a decision itself based on
how much the user visits the site.
@dbkr dbkr requested a review from a team October 4, 2019 11:21
Copy link
Copy Markdown
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dbkr dbkr merged commit 9981f89 into develop Oct 4, 2019
@t3chguy t3chguy deleted the dbkr/persist_storage_on_desktop branch May 12, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants