Skip to main content
Version: 24.41.0

Realm.extension() method

Returns the Extension that created this realm, if applicable. This is typically populated when the realm was created by an extension content script injected into a page.

Signature

class Realm {
abstract extension(): Promise<Extension | null>;
}

Returns:

Promise<Extension | null>

A promise that resolves to the Extension or null if not created by an extension.