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

Prevent the creation of a Worker from a JSON module #4899

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
11 changes: 8 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -88679,8 +88679,11 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
data-x="concept-request-client">client</span> is <var>fetch client settings
object</var>.</p></li>

<li><p>If <var>destination</var> is "<code data-x="">worker</code>" or "<code
data-x="">sharedworker</code>" and the <var>top-level module fetch</var> flag is set, then set
<li><p>Let <var>top-level worker</var> be true if <var>destination</var> is
"<code data-x="">worker</code>" or "<code data-x="">sharedworker</code>" and the
<var>top-level module fetch</var> flag is set; false otherwise.</p></li>

<li><p>If <var>top-level worker</var> is true, then set
<var>request</var>'s <span data-x="concept-request-mode">mode</span> to "<code
data-x="">same-origin</code>".

Expand Down Expand Up @@ -88751,7 +88754,8 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
</li>

<li>
<p>If <var>type</var> is a <span>JSON MIME type</span>, then:</p>
<p>If <var>type</var> is a <span>JSON MIME type</span> and <var>top-level worker</var> is false,
then:</p>

<ol>
<li><p>Let <var>source text</var> be the result of <span data-x="UTF-8 decode">UTF-8
Expand Down Expand Up @@ -123843,6 +123847,7 @@ INSERT INTERFACES HERE
Daniel Brumbaugh Keeney,
Daniel Buchner,
Daniel Cheng,
Daniel Clark, <!-- dandclark on GitHub-->
Daniel Davis,
Daniel Ehrenberg,
Daniel Glazman,
Expand Down