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

Starting to publish releases for Firefox (and Opera and Edge) from the upstream repo #28

Closed
crittermike opened this issue Dec 3, 2017 · 9 comments

Comments

@crittermike
Copy link

See https://github.com/mikecrittenden/chrome-shortkeys/releases/tag/v2.2.2

I switched to a new generator which has built in support for all 4 vendors so this is easy.

THAT SAID, this doesn't seem to actually install in Firefox right now. I'll try to figure out what's up with that at some point, but if you'd like to try to debug it in the meantime, feel free. Once we get that figured out, it'll be much easier for you to deploy releases to FF (unless you want to keep building those yourself, which is of course up to you).

Also, if you get burned out on maintaining this and want me to take over control of the FF version, just give me a holler.

@pmalecka
Copy link
Owner

pmalecka commented Dec 4, 2017

Hi Mike,

thanks for reaching out.

from the work you have done - on upgrading to the new API, and the structural changes/bugfixes - I believe we should pool our resources and try to create and maintain a single repo that would support all WebExt browsers.

I will take a look, and see if I can spot any obvious issues with FF.

@crittermike
Copy link
Author

Awesome, check out https://github.com/HaNdTriX/generator-chrome-extension-kickstart/blob/master/DOCUMENTATION.md#working-with-multiple-vendors for more information here. Like, if Chrome and Firefox need slightly different manifest options or we need some code that will only run in the Firefox version, there's built-in support for that.

@pmalecka
Copy link
Owner

pmalecka commented Dec 4, 2017

Oh, nice, that should do the trick. I'll test your version of the addon now in FF.

From what I can tell, adding the following section:
"applications": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "47.0"
}
},

and putting "<all_urls>" to the contentscript matches (this should be the only entry there)

makes it load in FF.

also, according to the documentation, options_ui: chrome_style, should be browser_style in FF.

@crittermike
Copy link
Author

@pmalecka awesome! That worked for me too. I pushed a v2.2.4 release with updated packages. https://github.com/mikecrittenden/chrome-shortkeys/releases/tag/v2.2.4

I'm also planning to rename the repo to just "shortkeys" and try to remove as many references to Chrome as possible. Any objections to that?

@pmalecka
Copy link
Owner

pmalecka commented Dec 4, 2017

great, I'll try and take some time to re-do my changes against your master and submit a PR. I'd also like to see if there are any actions that are not yet merged to your repo.

One thing I noticed is that the commands (from manifest.json) are not configurable in FF as they are in Chrome. So that part of the functionality - we cannot advertise to FF users.

It's called [email protected] on mozilla addons (a bit unfortunate choice - I had somehow forgotten to change that before pushing to AMO) - so yeah, shortkeys will work just fine.

@crittermike
Copy link
Author

Ah shoot - so I see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/commands, but it looks like there's just no UI for that yet?

@pmalecka
Copy link
Owner

pmalecka commented Dec 5, 2017

Exactly, and no word on whether that will ever be supported. I read somewhere that they plan to introduce a global shortcut API sometime in future.

@crittermike
Copy link
Author

Gotcha, that's a shame. I suppose we can leave the code there for FF so if/when they add it then it'll be ready, but just update the docs in the meantime to say that that feature is Chrome only.

pmalecka pushed a commit that referenced this issue Dec 11, 2017
@crittermike
Copy link
Author

I'm going ahead and closing this since we seem to be in good shape here now, thanks to @pmalecka - you're awesome!

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

2 participants