WebExtensions and XPCOM which use nsIPrint* interfaces

As I know the future of addons development will be focused on WebExtensions.
The Future of Developing Firefox Add-ons
I’m developer of [jsPrintSetup extension] (https://github.com/edabg/jsprintsetup) which provide Java script API to setup and control printing process.
The extension is implemented as XPCOM which provide global object jsPrintSetup (JavaScript global property).
Internal implementation uses set of nsIPrint* interfaces and related to them.
I have two main questions.

  1. Will WebExtensions API allow implementing of global JavaScript objects (like XPCOM JavaScript global property)?
  2. Which set of nsIPrint* interfaces is planned to provide WebExtensions API?

I hope someone to help me with more information.

Regards,

Dimitar Angelov

1 Like

The plan for WebExtensions is detailed in http://arewewebextensionsyet.com/. It looks like printerProvider is an API that would eventually be implemented, but I doubt it would make it to the first release.

As for exposing more low-level APIs, you might want to look into the native.js proposal, which will probably be supported.