MDN top-level page for add-ons used to get an overview of various types of extensions (since only FF57 web extensions are supported).
Components.utils.import
this is for re-xul (legacy) extensions.
const {Cu} = require ("chrome");
This is for SDK extensions.
None of these will work in webextensions.
Unlike other types of extensions, webextensions are restrictive; they do not provide access to the low-level APIs that you can find throughout the wiki.
Therefore, when searching for documentation related to this type of extension, stick to the pages that are under the webextensions hierarchy or the standard web APIs.
source share