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

fix: Add unlimitedStorage permission to make sure storage.local does not hit quota limits or IndexedDB QuotaManager data eviction #2079

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

rpl
Copy link
Member

@rpl rpl commented Jul 14, 2021

While looking into Bug 1720487 I did notice that multi-account-container isn't currently requesting the "unlimitedStorage" permission.

Without the "unlimitedStorage" permission, multi-account-container may more easily hit a quota limit.

Even besides the quota limit, at the moment the QuotaManager data eviction logic does not special case the extension origins and so there is a chance that below certain free disk space threshold the QuotaManager may select an extension origin while looking for the "least used origins to evict data from" (see Bug 1720487 comment 1 and Bug 1720487 comment 6.

(As a side note, the addition of the "unlimitedStorage" permission does not trigger a permission prompt, as expected for this kind of permission, and so it would not be prompting the user to accept the "unlimitedStorage" permission if included in a new version of the addon, in other words it does not introduce any friction for the existing users).

…'t hit quota limits or IndexedDB QuotaManager data eviction
Copy link
Collaborator

@kendallcorner kendallcorner left a comment

Choose a reason for hiding this comment

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

Extension workshop docs confirm the permission is not "advised" (i.e. it would not be a blocker for update): https://extensionworkshop.com/documentation/develop/request-the-right-permissions/#advised-permissions

Tested the PR, but I did not attempt to replicate the low storage space problem to see if it would fix it!

@groovecoder
Copy link
Member

Whoa, thanks! This might help some bug reports we've seen, but been un-able to reproduce, where peoples' Container assignments and settings have been lost and their onboarding state has been reset back to 0.

@groovecoder
Copy link
Member

Thanks @kendallcorner ! Also tested the PR and this looks good.

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.

3 participants