Skip to content

Commit 8f10983

Browse files
authored
Use a basic filtered response for redirect navigations
Fixes whatwg/html#8740.
1 parent e1f8129 commit 8f10983

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

fetch.bs

+15-9
Original file line numberDiff line numberDiff line change
@@ -5221,19 +5221,25 @@ these steps:
52215221

52225222
<dl class=switch>
52235223
<dt>"<code>error</code>"
5224-
<dd><p>Set <var>response</var> to a <a>network error</a>.
5224+
<dd>
5225+
<ol><li><p>Set <var>response</var> to a <a>network error</a>.</ol>
52255226

52265227
<dt>"<code>manual</code>"
5227-
<dd><p>Set <var>response</var> to an <a>opaque-redirect filtered response</a> whose
5228-
<a for="filtered response">internal response</a> is <var>actualResponse</var>. If
5229-
<var>request</var>'s <a for=request>mode</a> is "<code>navigate</code>", then set
5230-
<var>fetchParams</var>'s <a for="fetch params">controller</a>'s <a
5231-
for="fetch controller">next manual redirect steps</a> to run <a>HTTP-redirect fetch</a> given
5232-
<var>fetchParams</var> and <var>response</var>.
5228+
<dd>
5229+
<ol>
5230+
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>navigate</code>", then set
5231+
<var>fetchParams</var>'s <a for="fetch params">controller</a>'s
5232+
<a for="fetch controller">next manual redirect steps</a> to run <a>HTTP-redirect fetch</a>
5233+
given <var>fetchParams</var> and <var>response</var>.
5234+
5235+
<li><p>Otherwise, set <var>response</var> to an <a>opaque-redirect filtered response</a>
5236+
whose <a for="filtered response">internal response</a> is <var>actualResponse</var>.
5237+
</ol>
52335238

52345239
<dt>"<code>follow</code>"
5235-
<dd><p>Set <var>response</var> to the result of running <a>HTTP-redirect fetch</a> given
5236-
<var>fetchParams</var> and <var>response</var>.
5240+
<dd>
5241+
<ol><li><p>Set <var>response</var> to the result of running <a>HTTP-redirect fetch</a> given
5242+
<var>fetchParams</var> and <var>response</var>.</ol>
52375243
</dl>
52385244
<!-- not resetting actualResponse since it's no longer used anyway -->
52395245
</ol>

0 commit comments

Comments
 (0)