asciidoctor / asciidoctor-firefox-addon

:wolf: An add-on for Mozilla Firefox that converts AsciiDoc files to HTML directly in the browser using Asciidoctor.js.
https://addons.mozilla.org/en-US/firefox/addon/asciidoctorjs-live-preview/
MIT License
32 stars 9 forks source link

new API for firefox extension is released #54

Closed zaxebo1 closed 7 years ago

zaxebo1 commented 8 years ago

firefox old API for extensions will deprecated in future. Details of new API for mozilla firefox have started to emerge. please see:

http://phoronix.com/scan.php?page=news_item&px=WebExtensions-Firefox-48 https://blog.mozilla.org/addons/2016/04/29/webextensions-in-firefox-48/ https://github.com/mdn/webextensions-examples https://developer.mozilla.org/en-US/Add-ons/WebExtensions

In longer run, this asciidoctor extension for firefox will have to be ported to new API . This request is not needed just now, but in long run please keep it in plan

zaxebo1 commented 8 years ago

the best part of the new API is:

The technology is designed for cross-browser compatibility: to a large extent the API is compatible with the extension API supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox with just a few changes.

source: https://developer.mozilla.org/en-US/Add-ons/WebExtensions

ggrossetie commented 8 years ago

Hi @zaxebo1 Yes it's planned! Depending on how well this API is implemented and supported we might be able to have one code base for Chrome, Opera, Firefox and Edge. This is exciting because all features available on Chrome could be available for Firefox and Edge :smiley:

zaxebo1 commented 8 years ago

Thanks :smile: as it is already in plan/roadmap, then you may close this issue

ggrossetie commented 7 years ago

@mojavelinux Maybe it's time to focus the development on WebExtensions and release a single extension for Chrome, Opera and Firefox (based on WebExtensions API) ?

If we want to smooth the transition (and keep the Git history) we could remove specific code from the Chrome Extension repository. Then we could publish a new version of the extension to make sure that everything is working fine on Chrome, then publish this version on Firefox 45+.

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs

mojavelinux commented 7 years ago

That sounds like a great plan to me!

ggrossetie commented 7 years ago

@zaxebo1 The latest version available on the Firefox Add-ons website is now based on WebExtensions API: https://addons.mozilla.org/en-us/firefox/addon/asciidoctorjs-live-preview :tada:

zaxebo1 commented 7 years ago

Trillions of thanks :-)

ggrossetie commented 7 years ago

Thank you for your encouragement it means a lot to me :wink: