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 is not available in Firefox Add-On Store #2

Closed
bramus opened this issue Nov 23, 2022 · 3 comments
Closed

Extension is not available in Firefox Add-On Store #2

bramus opened this issue Nov 23, 2022 · 3 comments

Comments

@bramus
Copy link
Owner

bramus commented Nov 23, 2022

Firefox also supports v3 manifests (as of Firefox 109), so it should also be possible to ship it there as well …

@bramus
Copy link
Owner Author

bramus commented Nov 23, 2022

Work is being done in the https://github.com/bramus/mastodon-profile-redirect/tree/firefox branch.

Doesn’t seem like it’ll work though. Getting back

$ web-ext run --firefox-preview
Running web extension from /Users/bramus/repos/projects/mastodon-profile-redirect/src
Configuring Firefox preferences for Manifest V3
Setting custom Firefox preferences: {
  "extensions.manifestV3.enabled": true
}
Use --verbose or --devtools to see logging

WebExtError: installTemporaryAddon: Error: Error: Could not install add-on at '/Users/bramus/repos/projects/mastodon-profile-redirect/src': Error: background.service_worker is currently disabled
    at RemoteFirefox.installTemporaryAddon (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/firefox/remote.js:90:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async FirefoxDesktopExtensionRunner.startFirefoxInstance (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/extension-runners/firefox-desktop.js:218:27)
    at async FirefoxDesktopExtensionRunner.run (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/extension-runners/firefox-desktop.js:51:5)
    at async Promise.all (index 0)
    at async MultiExtensionRunner.run (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/extension-runners/index.js:68:5)
    at async run (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/cmd/run.js:178:3)
    at async Program.execute (file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/lib/program.js:263:7)
    at async file:///Users/bramus/.nvm/versions/node/v18.12.1/lib/node_modules/web-ext/bin/web-ext.js:13:1

The tracking bug to support background.service_worker is still open.

mozilla/web-ext#2379 (comment) suggests to use a separate manifest for Firefox, using the old way …

@bramus
Copy link
Owner Author

bramus commented Nov 24, 2022

After some trial and error I got it working: 2a2e17a

A build has been submitted, awaiting approval …

@bramus
Copy link
Owner Author

bramus commented Nov 25, 2022

Extension has been approved and is now published: https://addons.mozilla.org/en-US/firefox/addon/mastodon-profile-redirect/

Note that it is only compatible with Firefox 109 and up due to the usage of Manifest v3. To make it work in Firefox prior to 107, follow these instructions

@bramus bramus closed this as completed Nov 25, 2022
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

No branches or pull requests

1 participant