Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.75 KB

File metadata and controls

61 lines (52 loc) · 2.75 KB
title slug page-type browser-compat
extensionTypes
Mozilla/Add-ons/WebExtensions/API/extensionTypes
webextension-api
webextensions.api.extensionTypes

{{AddonSidebar}}

Some common types used in other WebExtension APIs.

Types

  • {{WebExtAPIRef("extensionTypes.ImageDetails")}}
    • : Details about the format and quality of an image.
  • {{WebExtAPIRef("extensionTypes.ImageFormat")}}
    • : The format of an image.
  • {{WebExtAPIRef("extensionTypes.InjectDetails")}}
    • : Injects details into a page.
  • {{WebExtAPIRef("extensionTypes.RunAt")}}
    • : The soonest that the JavaScript or CSS will be injected into the tab.
  • extensionTypes.CSSOrigin
    • : Indicates whether a CSS stylesheet injected by tabs.insertCSS should be treated as an "author" or "user" stylesheet.

Browser compatibility

{{Compat}}

{{WebExtExamples("h2")}}

Note: This API is based on Chromium's chrome.extensionTypes API. This documentation is derived from extension_types.json in the Chromium code.