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

Export terms needed for ServiceWorker/1674 #1170

Merged
merged 5 commits into from
Mar 22, 2023
Merged
Changes from all commits
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
20 changes: 20 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,26 @@ property of the event being dispatched.
<p>Ideally, any new event APIs are defined such that they do not need this property. (Use
<a href="https://github.com/whatwg/dom/issues">whatwg/dom</a> for discussion.)

<p>To <dfn export>legacy-obtain service worker fetch event listener callbacks</dfn> given a
{{ServiceWorkerGlobalScope}} <var>global</var>, run these steps. They return a <a for=/>list</a> of
{{EventListener}} objects.

<ol>
<li><p>Let <var>callbacks</var> be « ».

<li><p><a for=list>For each</a> <var>listener</var> of <var>global</var>'s
<a>event listener list</a>:

<ol>
<li><p>If <var>listener</var>'s <a for="event listener">type</a> is "<code>fetch</code>", and
<var>listener</var>'s <a for="event listener">callback</a> is not null, then
<a for=list>append</a> <var>listener</var>'s <a for="event listener">callback</a> to
<var>callbacks</var>.
</ol>

<li><p>Return <var>callbacks</var>.
</ol>
jakearchibald marked this conversation as resolved.
Show resolved Hide resolved


<h3 id=dispatching-events>Dispatching events</h3>

Expand Down