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

Example of generating a manifest for both Firefox and Chrome #286

Closed
kumar303 opened this issue Sep 25, 2017 · 6 comments
Closed

Example of generating a manifest for both Firefox and Chrome #286

kumar303 opened this issue Sep 25, 2017 · 6 comments
Labels
example New or updated example idle Issues and pull requests with no activity for three months.

Comments

@kumar303
Copy link
Contributor

A key point of the WebExtensions API is building cross-platform extensions. However, the manifest is one file that differs significantly between Firefox and Chrome so it's inevitable that you'll need to ship a separate manifest for each.

It would be great to provide an example of this, perhaps one similar to this method of using webpack to copy a platform specific manifest. The downside to this method is that many details are duplicated between each manifest. A better approach would be to render a manifest using a template. I think webpack would support that.

@SerkanSipahi
Copy link

@kumar303 Sure? look at this https://developer.mozilla.org/de/Add-ons/WebExtensions/manifest.json for "webextensions api" ! or am I wrong?

However, the manifest is one file that differs significantly between Firefox and Chrome so it's inevitable that you'll need to ship a separate manifest for each.

@kumar303
Copy link
Contributor Author

Well, they don't differ significantly but as I recall there are certain things you could put in a Firefox manifest that will throw errors (or at least warnings) in Chrome. One example is the gecko ID.

@SerkanSipahi
Copy link

@kumar303 which properties (manifest.json) for firefox are mandatory? is there any resources?

@SerkanSipahi
Copy link

SerkanSipahi commented Oct 22, 2017

@yfdyh000 i saw this tables (https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json) but overlooked the differs. Thank you :)

@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jan 4, 2023
@rebloor rebloor added the example New or updated example label Jun 23, 2023
@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Jun 24, 2023
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jul 24, 2023
@rebloor
Copy link
Collaborator

rebloor commented Jul 30, 2023

No activity within the last three years, closing.

@rebloor rebloor closed this as completed Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example New or updated example idle Issues and pull requests with no activity for three months.
Projects
None yet
Development

No branches or pull requests

4 participants