Table of Contents

Class ExtendableCookieChangeEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The ExtendableCookieChangeEvent interface of the {{domxref("Cookie Store API", "", "", "nocode")}} is the event type passed to ServiceWorkerGlobalScopecookiechange event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list. A cookie change event consists of a cookie and a type (either "changed" or "deleted").

[Value("ExtendableCookieChangeEvent")]
public class ExtendableCookieChangeEvent : ExtendableEvent
Inheritance
ExtendableCookieChangeEvent
Inherited Members

Remarks

Cookie changes that cause the ExtendableCookieChangeEvent to be dispatched are:

See also on MDN

Constructors

ExtendableCookieChangeEvent()

public ExtendableCookieChangeEvent()

ExtendableCookieChangeEvent(string, ExtendableCookieChangeEventInit)

The ExtendableCookieChangeEvent() constructor creates a new ExtendableCookieChangeEvent object
which is the event type passed to ServiceWorkerGlobalScopecookiechange event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list.
This constructor is called by the browser when a change event occurs.

public ExtendableCookieChangeEvent(string type, ExtendableCookieChangeEventInit eventInitDict = null)

Parameters

type string
eventInitDict ExtendableCookieChangeEventInit

Remarks

NOTE

This event constructor is generally not needed for production websites. It's primary use is for tests that require an instance of this event.

See also on MDN

Properties

Changed

The changed read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given ExtendableCookieChangeEvent instance.

[Value("changed")]
public CookieListItem[] Changed { get; }

Property Value

CookieListItem[]

An array of objects containing the changed cookie(s). Each object contains the following properties:

Remarks

Deleted

The deleted read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given ExtendableCookieChangeEvent instance.

[Value("deleted")]
public CookieListItem[] Deleted { get; }

Property Value

CookieListItem[]

An array of objects containing the deleted cookie(s). Each object contains the following properties:

Remarks