WebIDLpedia

WindowClient interface

Definition

Service Workers Nightly defines WindowClient



[Exposed=ServiceWorker]
interface WindowClient : Client {
  readonly attribute DocumentVisibilityState visibilityState;
  readonly attribute boolean focused;
  [SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
  [NewObject] Promise<WindowClient> focus();
  [NewObject] Promise<WindowClient?> navigate(USVString url);
};

Methods and attributes that return objects implementing WindowClient

Referring IDL interfaces/dictionaries

Referring specifications