Wren

chrome.offscreen

One page that shows nothing per extension (src/page/ext_offscreen.odin). It has chrome.runtime only.

Gate: permission offscreen; contexts: Background, Popup, Tab. Source: api/ext_offscreen.widl.

Methods and properties

MemberResultStatusGate
createDocument(CreateParameters parameters)voidhostAnswers once the document fired its load event. A second document is an error.
hasDocument()boolhost
closeDocument()voidhost

Types

Reason

A string: "TESTING", "AUDIO_PLAYBACK", "IFRAME_SCRIPTING", "DOM_SCRAPING", "BLOBS", "DOM_PARSER", "USER_MEDIA", "DISPLAY_MEDIA", "WEB_RTC", "CLIPBOARD", "LOCAL_STORAGE", "WORKERS", "BATTERY_STATUS", "MATCH_MEDIA", "GEOLOCATION". chrome.offscreen.Reason names them.

CreateParameters

PropertyType
reasonsReason[]At least one. A document made for CLIPBOARD only closes after extensions.offscreen.max_lifetime_ms.
urlstringA file of the extension.
justificationstring

Edit this page on GitHub