cleidigh / ThunderKdB

Thunderbird Addon Code Knowledge Base
11 stars 7 forks source link

Should I import ExtensionsCommon.jsm? Is it useful for extension authors? #20

Open eyalroz opened 4 years ago

eyalroz commented 4 years ago

If I want to do things that the WebExtension APIs do not support, it looks like I need to use ChromeUtils.import and import some magic that does stuff that is not documented anywhere [such as] var { ExtensionCommon } = ChromeUtils.import("resource://gre/modules/ExtensionCommon.jsm");

The WebExtensions APIs are well documented, but soon after I tried Google for a documentation of what ExtensionCommon.jsm can do for me ... I had the feeling to enter a dark cave.

So:

See also #19.