Skip to main content

Background Ports

Background ports expose privileged browser APIs that are only available in the extension's service worker or background page context.

Included Ports

PortDescription
ActionPortToolbar button badge, icon, and popup control
AlarmsPortPeriodic and one-time background alarm scheduling
BookmarksPortBookmark tree read, write, search, and delete
BrowsingDataPortCache, cookie, and history clearing
CommandsPortKeyboard shortcut registration and events
CookiesPortFull cookie lifecycle management
DeclarativeNetRequestPortMV3-native dynamic network interception rules
DownloadsPortFile download initiation and queue management
HistoryPortBrowser history search, addition, and deletion
IdentityPortOAuth 2.0 flows and signed-in user profile
IdlePortSystem idle state monitoring
ManagementPortInstalled extension introspection and lifecycle
MenusPortContext menu item creation and events
NotificationsPortOS-level browser notification display
PermissionsPortOptional permission request and revocation
ScriptingPortRuntime script injection into tabs
StoragePortUnified access to all browser storage areas
TabGroupsPortTab group query and management
TabsPortTab query, messaging, and broadcast
UserScriptsPortIsolated-world user script registration
WebNavigationPortNavigation lifecycle event observation
WebRequestPortNetwork request interception and observation

Deprecated Ports

PortReplacement
BrowserActionPortUse ActionPort
PageActionPortUse ActionPort