-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
files/ja/web/api/serviceworkerglobalscope/cookiechange_event/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "ServiceWorkerGlobalScope: cookiechange イベント" | ||
short-title: cookiechange | ||
slug: Web/API/ServiceWorkerGlobalScope/cookiechange_event | ||
l10n: | ||
sourceCommit: 60c3843f55839380e0c0cdc293ea694fe9943158 | ||
--- | ||
|
||
{{APIRef("Cookie Store API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}} | ||
|
||
**`cookiechange`** は {{domxref("ServiceWorkerGlobalScope")}} インターフェイスのイベントで、サービスワーカーのクッキー変更購読リストで一致するクッキー変更が発生したときに発行されます。 | ||
|
||
このイベントはキャンセル不可で、バブリングしません。 | ||
|
||
## 構文 | ||
|
||
このイベント名を {{domxref("EventTarget.addEventListener", "addEventListener()")}} などのメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。 | ||
|
||
```js | ||
addEventListener("cookiechange", (event) => {}); | ||
|
||
oncookiechange = (event) => {}; | ||
``` | ||
|
||
## イベント型 | ||
|
||
{{domxref("ExtendableCookieChangeEvent")}} です。{{domxref("ExtendableEvent")}} から継承しています。 | ||
|
||
{{InheritanceDiagram("ExtendableCookieChangeEvent")}} | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |
23 changes: 23 additions & 0 deletions
23
files/ja/web/api/serviceworkerglobalscope/cookiestore/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "ServiceWorkerGlobalScope: cookieStore プロパティ" | ||
short-title: cookieStore | ||
slug: Web/API/ServiceWorkerGlobalScope/cookieStore | ||
l10n: | ||
sourceCommit: 60c3843f55839380e0c0cdc293ea694fe9943158 | ||
--- | ||
|
||
{{APIRef("Cookie Store API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}} | ||
|
||
**`cookieStore`** は {{domxref("ServiceWorkerGlobalScope")}} インターフェイスの読み取り専用プロパティで、このサービスワーカーに関連付けられた {{domxref("CookieStore")}} オブジェクトへの参照を返します。 | ||
|
||
## 値 | ||
|
||
{{domxref("CookieStore")}} オブジェクトインスタンスです。 | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |