ExtendableCookieChangeEvent: ExtendableCookieChangeEvent() コンストラクター
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
ExtendableCookieChangeEvent()
コンストラクターは、ServiceWorkerRegistration.oncookiechange()
に渡されるイベント型である新しい ExtendableCookieChangeEvent
オブジェクトを生成します。このコンストラクターは、変更イベントが発生するとブラウザーによって呼ばれます。
メモ: このコンストラクターは、通常は製品のウェブサイトでは必要ありません。主な使用法は、このイベントのインスタンスが必要なテストです。
構文
js
new ExtendableCookieChangeEvent(type)
new ExtendableCookieChangeEvent(type, options)
引数
type
-
イベントの名前を表す文字列です。大文字と小文字は区別され、ブラウザーは常に
cookiechange
に設定します。 options
省略可-
ExtendableEvent()
で定義されたプロパティに加え、以下のプロパティを持ちうるオブジェクトです。
返値
新しい ExtendableCookieChangeEvent
オブジェクトです。
仕様書
Specification |
---|
Cookie Store API # dom-extendablecookiechangeevent-extendablecookiechangeevent |
ブラウザーの互換性
BCD tables only load in the browser