ExtendableCookieChangeEvent: deleted プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
ExtendableCookieChangeEvent
インターフェイスの読み取り専用プロパティ deleted
は、与えられた ExtendableCookieChangeEvent
のインスタンスで削除されたすべての Cookie を返します。
値
オブジェクトの配列で、削除された Cookie が格納されています。それぞれのオブジェクトは以下のプロパティを持ちます。
例
この例では、Cookie が削除されると、イベントリスナーがコンソールに deleted
プロパティの最初の要素を記録します。これには、削除されたばかりの Cookie を表すオブジェクトが格納されています。
js
self.addEventListener("cookiechange", (event) => {
console.log(event.deleted[0]);
});
仕様書
Specification |
---|
Cookie Store API # dom-extendablecookiechangeevent-deleted |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deleted | ||||||||||||
partitioned property |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- In development. Supported in a pre-release version.
- In development. Supported in a pre-release version.
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.