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

Manifest v3 #219

Merged
merged 6 commits into from
Mar 9, 2023
Merged

Manifest v3 #219

merged 6 commits into from
Mar 9, 2023

Conversation

KillariDev
Copy link
Contributor

@KillariDev KillariDev commented Mar 3, 2023

  • Adds support for Manifest v3 while still maintaining support for V2

@KillariDev KillariDev added the enhancement New feature or request label Mar 3, 2023
@KillariDev
Copy link
Contributor Author

Ethers fix is required to get v3 working: ethers-io/ethers.js#3856

@KillariDev KillariDev marked this pull request as ready for review March 6, 2023 08:34
Copy link
Contributor

@0xjimmy 0xjimmy left a comment

Choose a reason for hiding this comment

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

Thats a lot of globalThis

@@ -185,7 +185,7 @@ export function App() {

function openAddressBook() {
sendPopupMessageToBackgroundPage( { method: 'popup_openAddressBook' } )
return window.close() // close extension popup, chrome closes it by default, but firefox does not
return globalThis.close() // close extension popup, chrome closes it by default, but firefox does not
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs an issue made?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's a bug. The browsers just work differently

"web_accessible_resources": [
{
"resources": ["vendor/*", "js/*", "inpage/*"],
"matches": ["<all_urls>"] // not sure if this is right?
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes this is valid

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be much better if we did activeTab instead, but that requires users to click the extension icon to activate it. This permission requires that we get "read and write access to all websites you visit".

@KillariDev KillariDev merged commit 25f9949 into main Mar 9, 2023
@KillariDev KillariDev deleted the manifestv3 branch March 9, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants