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
| Member | Result | Status | Gate | |
|---|---|---|---|---|
createDocument(CreateParameters parameters) | void | host | Answers once the document fired its load event. A second document is an error. | |
hasDocument() | bool | host | ||
closeDocument() | void | host |
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
| Property | Type | |
|---|---|---|
reasons | Reason[] | At least one. A document made for CLIPBOARD only closes after extensions.offscreen.max_lifetime_ms. |
url | string | A file of the extension. |
justification | string |