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

Make compatible with Firefox WebExtensions #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Celti
Copy link

@Celti Celti commented Jan 28, 2018

Firefox 57 uses WebExtensions with 95% compatibility with Chrome. This PR covers that last 5%.

While commit 116983e makes the generated zip file compatible with AMO, this PR does not make any changes to Travis to sign an XPI or actually submit the extension for Firefox.

The WebExtensions manifest.json specifies that the author key is a
string, not an object. Split out author.name and author.url into author
and homepage_url strings. The email key is discarded as the spec does
not support it.
Firefox WebExtension addons do not allow assignment to innerHTML with
unsanitised content. Use DOMPurify[1] to sanitise the outline HTML
passed from the content process.

[1]: https://github.com/cure53/DOMPurify
WebExtensions submitted to AMO must have all files in the root of
the submitted zip file, not in a containing directory.
@Celti
Copy link
Author

Celti commented Jan 28, 2018

That typo must have slipped in after testing, but before committing. :/

A verified-working Firefox XPI, generated using AMO and the grunt-built zip file, is temporarily available at https://repo.celti.name/html5_outliner-0.8.13-an%2Bfx.xpi for ease of testing.

@dominykas
Copy link
Member

Thanks! I'll try to look into this soon!

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

Successfully merging this pull request may close these issues.

None yet

2 participants