Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '[SecureContext]` tags to the interfaces #224

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,8 @@ The <dfn method for=CookieStoreManager>unsubscribe(|subscriptions|)</dfn> method
The {{ServiceWorkerRegistration}} interface is extended to give access to a {{CookieStoreManager}} via {{ServiceWorkerRegistration/cookies}} which provides the interface for subscribing to cookie changes.

<xmp class=idl>
[Exposed=(ServiceWorker,Window)]
[Exposed=(ServiceWorker,Window),
SecureContext]
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
partial interface ServiceWorkerRegistration {
[SameObject] readonly attribute CookieStoreManager cookies;
};
Expand Down Expand Up @@ -964,7 +965,8 @@ cookie changes have occurred which match the [=Service Worker=]'s
Note: {{ExtendableEvent}} is used as the ancestor interface for all events in [=Service Workers=] so that the worker itself can be kept alive while the async operations are performed.

<xmp class=idl>
[Exposed=ServiceWorker]
[Exposed=ServiceWorker,
SecureContext]
interface ExtendableCookieChangeEvent : ExtendableEvent {
constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {});
[SameObject] readonly attribute FrozenArray<CookieListItem> changed;
Expand Down Expand Up @@ -1007,6 +1009,7 @@ The <dfn attribute for=Window>cookieStore</dfn> getter steps are to return [=/th
<!-- ============================================================ -->

<xmp class=idl>
[SecureContext]
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
partial interface ServiceWorkerGlobalScope {
[SameObject] readonly attribute CookieStore cookieStore;

Expand Down