Skip to content

Migrate to MV3 - #7473

Merged
fregante merged 5 commits into
mainfrom
mv3
Jun 21, 2024
Merged

fregante merged 5 commits into
mainfrom
mv3

Conversation

@fregante

@fregante fregante commented Jun 19, 2024 •

Copy link
Copy Markdown
Member

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
Comment thread source/manifest.json
},
"permissions": [
"storage",
"scripting",

Copy link
Copy Markdown
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.

Comment thread source/manifest.json
"default_icon": "assets/icon.png"
},
"optional_permissions": [
"optional_host_permissions": [

@fregante fregante Jun 20, 2024 •

Copy link
Copy Markdown
Member Author

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 🎉

Comment thread source/manifest.json
]
{
"resources": [ "assets/resolve-conflicts.js" ],
"matches": [ "https://*/*" ]

Copy link
Copy Markdown
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

@fregante fregante left a comment

Copy link
Copy Markdown
Member Author

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

@fregante fregante left a comment

Copy link
Copy Markdown
Member Author

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
@fregante
fregante deleted the mv3 branch June 21, 2024 09:04
Comment thread source/manifest.json
"storage",
"scripting",
"contextMenus",
"activeTab",

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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