Offscreen Documents

offscreen
Low RiskCategory: System & PerformanceView Official Docs

Technical Context

Allows the extension to create hidden documents for running DOM-dependent operations in the background. This enables audio playback, canvas rendering, and other DOM operations without visible windows.

What This Means For You

The extension can do things that normally require a visible page, like playing audio or processing images, without opening a window you can see.

Related APIs

This permission enables access to these Chrome APIs:

chrome.offscreen

Common Use Cases

  • Audio players
  • Image processors
  • PDF generators

How to Declare in manifest.json

Add the "offscreen" permission to your extension manifest:

{
  "manifest_version": 3,
  "name": "My Extension",
  "permissions": [
    "offscreen"
  ]
}

Related Permissions