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

Migrate to MV3 #7473

Merged
merged 5 commits into from
Jun 21, 2024
Merged

Migrate to MV3 #7473

merged 5 commits into from
Jun 21, 2024

Conversation

fregante
Copy link
Member

@fregante fregante commented Jun 19, 2024

Thanks to all the work I've done supporting my webext-* modules for PixieBrix, updating Refined GitHub meant changing only a few keys in the manifest. Now I just need to check what this means for GH Enterprise users.

So this upgrade is sponsored by PixieBrix 🎉

@fregante fregante added the meta Related to Refined GitHub itself label Jun 19, 2024
@@ -17,23 +18,28 @@
},
"permissions": [
"storage",
"scripting",
Copy link
Member Author

Choose a reason for hiding this comment

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

Explanation for the Chrome Web Store:

The scripting API is used to inject the content script into new hosts when granted by the user.

"default_icon": "assets/icon.png"
},
"optional_permissions": [
"optional_host_permissions": [
Copy link
Member Author

@fregante fregante Jun 20, 2024

Choose a reason for hiding this comment

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

Firefox still doesn't support this. The good news is that it should be out on July 9th. I'll wait until then to merge this PR.

https://bugzilla.mozilla.org/show_bug.cgi?id=1766026

Other than this, GHE support seems to be unaffected in both Chrome and Firefox 🎉

]
{
"resources": [ "assets/resolve-conflicts.js" ],
"matches": [ "https://*/*" ]
Copy link
Member Author

Choose a reason for hiding this comment

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

@fregante fregante marked this pull request as draft June 20, 2024 04:35
Copy link
Member Author

@fregante fregante left a comment

Choose a reason for hiding this comment

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

Blocked by Firefox. v128 will be out on July 9th.

@fregante fregante marked this pull request as ready for review June 21, 2024 09:01
Copy link
Member Author

@fregante fregante left a comment

Choose a reason for hiding this comment

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

  • Added GHE support for Firefox <128 so I don't have to wait. I tested the "invalid" optional_permissions array on the Chrome Web Store and it was fine
  • Fixed a bug where it would be injected multiple times on GHE as the worker restarts

@fregante fregante merged commit d9ea198 into main Jun 21, 2024
10 checks passed
@fregante fregante deleted the mv3 branch June 21, 2024 09:04
@@ -17,23 +18,31 @@
},
"permissions": [
"storage",
"scripting",
"contextMenus",
"activeTab",

Choose a reason for hiding this comment

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

Why is this permission required? There is a side-effect with Firefox MV3: this extension now "needs attention" on every tab that isn't GitHub.

Screenshot 2024-06-24 at 12 26 19

Copy link
Member Author

Choose a reason for hiding this comment

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

That's not it, see #7477

The permission is required in MV3 to add support for GitHub Enterprise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to Refined GitHub itself
Development

Successfully merging this pull request may close these issues.

Migrating to Manifest V3
2 participants