Realm.extension() method
This method returns the extension that created this realm if the realm was created from an Extension. An example of this is an extension content script running on a page.
Signature
class Realm {
abstract extension(): Promise<Extension | null>;
}
Returns:
Promise<Extension | null>