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: switch page->auto mode on upgrade from pre-2.12.8 #996

Merged
merged 2 commits into from
Jun 2, 2020

Conversation

tophf
Copy link
Member

@tophf tophf commented Jun 1, 2020

Turns out most of existing users are still using the page injection mode instead of auto which is the default one since dea7de0 in 2.12.2. It means we still don't help our longtime Firefox users who are affected by the Firefox bug that applies page CSP to our script elements.

This PR forcefully switches from page to auto when upgrading from 2.12.7 or older in Firefox.

@tophf tophf requested a review from gera2ld June 1, 2020 20:35
src/background/utils/db.js Outdated Show resolved Hide resolved
@gera2ld
Copy link
Member

gera2ld commented Jun 2, 2020

The retrying behavior looks great.

@gera2ld gera2ld merged commit d8f37d1 into violentmonkey:master Jun 2, 2020
@tophf tophf deleted the injection-mode branch June 2, 2020 08:25
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