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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox: show alert when db cannot be created #3199

Merged

Conversation

erikdesjardins
Copy link
Collaborator

This should give us an idea if #3194 is common or not (in the beta); hopefully we don't have to fall back to simple-storage and its horrible instability 馃槹.

image

@erikdesjardins erikdesjardins added this to the v4.7 milestone Jul 25, 2016
}

addListener('storage', ([operation, key, value], worker) => {
if (!db) storageFailureAlert(worker);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: three or four storage requests are made before init crashes, so this will open multiple alerts in series.

But I don't think that's a problem because you'd immediately roll back/disable the extension if this happens (memoizing by worker and current URL would be mildly complex for little gain).

So background pages can display alerts (usually catastrophic errors).
@erikdesjardins erikdesjardins merged commit 402e411 into honestbleeps:master Jul 26, 2016
@erikdesjardins erikdesjardins deleted the firefox-no-storage-alert branch July 26, 2016 00:26
@Ajedi32
Copy link
Contributor

Ajedi32 commented Jul 26, 2016

I wonder if we could have RES automatically report this somewhere. It'd be nice to have some hard data on how common this is.

@erikdesjardins
Copy link
Collaborator Author

erikdesjardins commented Jul 26, 2016

Redditors can be, ahem "security-conscious" (which is why we have zero telemetry), so probably not. We might have opt-in telemetry in the future, but that's a fairly large project.

Hopefully this won't be a problem for very long though, what with the planned stabilization of WebExtensions in Firefox 48, where hopefully their implementation of chrome.storage will be stable.

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.

None yet

2 participants