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

extension: Upgrade Firefox to Manifest V3 #16808

Merged
merged 9 commits into from
Jun 25, 2024

Conversation

danielhjacobs
Copy link
Contributor

@danielhjacobs danielhjacobs commented Jun 21, 2024

This works. The only reason it's a draft is because the onboarding page looks awful.

Manifests have been merged, please test on Chrome as well. If you have Firefox 126 (one below stable), test there too, as it treats host_permissions differently.

@danielhjacobs danielhjacobs force-pushed the firefox-mv3 branch 3 times, most recently from ae9dc71 to 14fbfd3 Compare June 21, 2024 19:01
@danielhjacobs danielhjacobs marked this pull request as ready for review June 21, 2024 19:47
@evilpie
Copy link
Collaborator

evilpie commented Jun 21, 2024

I thought that with Firefox 127 the installation prompt will now include all permissions?

Beginning with Firefox 127, users will be prompted to grant MV3 host permissions as part of the install flow (similar to MV2 extensions). We’re excited to deliver this work as based on feedback from Firefox users and extension developers, this has been a major hurdle for MV3 extensions in Firefox.

https://blog.mozilla.org/addons/2024/05/14/manifest-v3-updates/

@danielhjacobs
Copy link
Contributor Author

Interesting. Surely we want to keep this working on older Firefox versions though, right? The onboarding page only appears if hasAllUrlsPermission returns false.

@danielhjacobs
Copy link
Contributor Author

danielhjacobs commented Jun 21, 2024

Also the new permissionsButton popup is still nice because it handles the described situation where "MV3 extensions should still leverage the permissions API to ensure that the permissions required are already granted."

Copy link
Contributor

@Dinnerbone Dinnerbone left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -34,6 +34,7 @@
</div>
</div>
<div class="buttons-container">
<button class="hidden" id="permissions-button">Permanently enable for this site</button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should highlight this button a bit more, so it's at least more prominent than the "open SWF player" button?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be a follow-up. I'm not good with design. I did move this button to a separate buttons-container div, so that it ends up on a separate line explicitly rather than just by a quirk of the CSS.

Copy link
Collaborator

@evilpie evilpie left a comment

Choose a reason for hiding this comment

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

I think this is fine to land as-is. Users running without <all_urls> are probably used to pain.

Copy link
Collaborator

@evilpie evilpie left a comment

Choose a reason for hiding this comment

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

Looks ok. If we get complaints about reloading tabs we can still fix it.

@danielhjacobs danielhjacobs merged commit 38e4809 into ruffle-rs:master Jun 25, 2024
15 checks passed
@danielhjacobs danielhjacobs deleted the firefox-mv3 branch June 25, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants