Skip to content

Commit 49f3c8e

Browse files
[HTML] Expose redirectCount for TAO opted-in navigation redirect chains whatwg/html@b94ff88
1 parent f28ba7e commit 49f3c8e

2 files changed

Lines changed: 73 additions & 22 deletions

File tree

HTML-dependencies-ja.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136

137137
●●options
138138

139-
spec_date:2026-06-17
140-
trans_update:2026-06-18
139+
spec_date:2026-06-25
140+
trans_update:2026-06-28
141141
source_checked:260225
142142
page_state_key:HTML
143143
spec_status:LS
@@ -279,6 +279,7 @@
279279
XLink:
280280
XMLNS:
281281
User-Agent:
282+
TAO:
282283

283284

284285
●構造/データ型/演算
@@ -701,6 +702,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
701702
<li id="xml-namespace">`~XML名前空間@~INFRA#xml-namespace$
702703
<li id="xmlns-namespace">`~XMLNS名前空間@~INFRA#xmlns-namespace$
703704
</ul>
705+
<li id="success">`成功@~INFRA#success$i
704706
</ul>
705707

706708
@@ -761,6 +763,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
761763
• XLink namespace
762764
• XML namespace
763765
• XMLNS namespace
766+
• success
764767
</dd>
765768

766769
<!--% ENCODING -->
@@ -1310,6 +1313,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
13101313
<li id="reserve-deferred-fetch-quota">`先送d~fetch~quotaを予約する@~FETCH#reserve-deferred-fetch-quota$
13111314
<li id="potentially-free-deferred-fetch-quota">`先送d~fetch~quotaを必要なら自由化する@~FETCH#potentially-free-deferred-fetch-quota$
13121315
<li id="is-offline">`環境~設定群~objは~offlineか否か@~FETCH#is-offline$
1316+
<li id="navigation-tao-check">`~navi~TAO検査@~FETCH#navigation-tao-check$
13131317
<li id="concept-response">`応答@~FETCH#concept-response$, その:
13141318
<ul>
13151319
<li id="concept-response-type">`種別@~FETCH#concept-response-type$
@@ -1428,6 +1432,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
14281432
• reserve deferred fetch quota
14291433
• potentially free deferred fetch quota
14301434
• is offline
1435+
• navigation TAO check
14311436
• response and its associated:
14321437
•• type
14331438
•• URL

HTML-document-lifecycle-ja.html

Lines changed: 66 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898

9999
●●options
100100

101-
spec_date:2026-03-31
102-
trans_update:2026-04-01
101+
spec_date:2026-06-25
102+
trans_update:2026-06-28
103103
source_checked:250730
104104
page_state_key:HTML
105105
spec_status:LS
@@ -134,11 +134,13 @@
134134

135135
●●words_table
136136

137-
●network
137+
●名称/略語
138+
TAO:
139+
COOP:
138140
Content-Type:
139-
HTTP_S:HTTP(S)
140141
Speculation-Rules:
141-
COOP:
142+
143+
●network
142144
close:
143145
load:
144146
読込直す:reloadする::読み込み直す::リロードする
@@ -148,7 +150,7 @@
148150
部位t:part:部位
149151
-部位t:multipart
150152

151-
●環境 navi
153+
●環境 navi
152154
lifecycle:
153155
agent:
154156
iframe:
@@ -616,6 +618,7 @@
616618
~size:~INFRA#list-size
617619
~HTML名前空間:~INFRA#html-namespace
618620
~byte列:~INFRA#byte-sequence
621+
i.成功:~INFRA#success
619622

620623
~Assert:~INFRA#assert
621624
~IN:~INFRA#list-contain
@@ -633,6 +636,7 @@
633636
rq.~redirect回数:~FETCH#concept-request-redirect-count
634637
rq.~referrer:~FETCH#concept-request-referrer
635638
rq.現在の~URL:~FETCH#concept-request-current-url
639+
rq.~client:~FETCH#concept-request-client
636640
rs.~URL:~FETCH#concept-response-url
637641
rs.~header~list:~FETCH#concept-response-header-list
638642
rs.~sw計時~:~FETCH#response-service-worker-timing-info
@@ -646,6 +650,7 @@
646650
応答:~FETCH#concept-response
647651
有構造~field値を取得する:~FETCH#concept-header-list-get-structured-header
648652
先送d~fetch~quotaを必要なら自由化する:~FETCH#potentially-free-deferred-fetch-quota
653+
~navi~TAO検査:~FETCH#navigation-tao-check
649654

650655
doc.種別:~DOM4#concept-document-type
651656
doc.内容~:~DOM4#concept-document-content-type
@@ -929,7 +934,7 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
929934
%~navigable の`容器$nav ~NEQ ~NULL
930935
]:
931936
932-
If navigable's container is not null, then:
937+
If navigable's container is not null:
933938
</p>
934939
<ol>
935940
<li>
@@ -1057,12 +1062,16 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
10571062
Run CSP initialization for a Document given document. [CSP]
10581063
</li>
10591064
<li>
1065+
%要請 ~LET %~navi~params の`要請$nvP
1066+
1067+
</li>
1068+
<li>
10601069
<p>
10611070
~IF[
1062-
%~navi~params の`要請$nvP ~NEQ ~NULL
1071+
%要請 ~NEQ ~NULL
10631072
]:
10641073
1065-
If navigationParams's request is non-null, then:
1074+
If navigationParams's request is non-null:
10661075
</p>
10671076
<ol>
10681077
<li>
@@ -1071,7 +1080,7 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
10711080
Set document's referrer to the empty string.
10721081
</li>
10731082
<li>
1074-
%~referrer ~LET %~navi~params の`要請$nvPの`~referrer$rq
1083+
%~referrer ~LET %要請 の`~referrer$rq
10751084
10761085
Let referrer be navigationParams's request's referrer.
10771086
</li>
@@ -1103,7 +1112,7 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
11031112
%~navi~params の`~fetch制御器$nvP ~NEQ ~NULL
11041113
]:
11051114
1106-
If navigationParams's fetch controller is not null, then:
1115+
If navigationParams's fetch controller is not null:
11071116
</p>
11081117
<ol>
11091118
<li>
@@ -1112,12 +1121,49 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
11121121
Let fullTimingInfo be the result of extracting the full timing info from navigationParams's fetch controller.
11131122
</li>
11141123
<li>
1115-
%~redirect回数 ~LET %~navi~params の`応答$nvPの`非同一-生成元~redirectはあるか$rsに応じて
1116-
⇒#
1117-
~T ならば 0 /
1118-
~F ならば %~navi~params の`要請$nvPの`~redirect回数$rq
1124+
<p>
1125+
%~redirect回数 ~LET [
1126+
~OR↓ が満たされるならば %要請 の`~redirect回数$rq /
1127+
~ELSE_ 0
1128+
]:
1129+
</p>
1130+
<ul>
1131+
<li>
1132+
%~navi~params の`応答$nvPの`非同一-生成元~redirectはあるか$rs ~EQ ~F
1133+
</li>
1134+
<li>
1135+
<p>
1136+
~AND↓:
1137+
</p>
1138+
<ul>
1139+
<li>
1140+
<p>
1141+
~OR↓:
1142+
</p>
1143+
<ul>
1144+
<li>
1145+
%要請 の`~client$rq ~EQ ~NULL
1146+
</li>
1147+
<li>
1148+
%要請 の`~referrer$rq ~NEQ `no-referrer^l
1149+
</li>
1150+
</ul>
1151+
</li>
1152+
<li>
1153+
次の結果 ~EQ `成功^i
1154+
1155+
`~navi~TAO検査$( %~navi~params の`応答$nvP, %~navi~params の`生成元$nvP )
1156+
</li>
1157+
</ul>
1158+
</li>
1159+
</ul>
1160+
1161+
Let redirectCount be 0.
11191162
1120-
Let redirectCount be 0 if navigationParams's response's has cross-origin redirects is true; otherwise navigationParams's request's redirect count.
1163+
If navigationParams's response's has cross-origin redirects is false, or all of the following are true:
1164+
• navigationParams's request's client is null, or navigationParams's request's referrer is not "no-referrer", and
1165+
• navigation TAO check given navigationParams's response and navigationParams's origin returns success,
1166+
then set redirectCount to navigationParams's request's redirect count.
11211167
</li>
11221168
<li>
11231169
`~navi計時~entryを作成する$( ↓ )
@@ -2725,7 +2771,7 @@ <h4 title="Unloading documents">7.5.9. 文書の~unload法</h4>
27252771
%文書 の`回復可能か$doc ~EQ ~F
27262772
]:
27272773
2728-
If document's salvageable state is false, then:
2774+
If document's salvageable state is false:
27292775
</p>
27302776
<ol>
27312777
<li>
@@ -2907,7 +2953,7 @@ <h4 title="Destroying documents">7.5.10. 文書の破壊-法</h4>
29072953
%文書 は`全部的に作動中$でない
29082954
]:
29092955
2910-
If document is not fully active, then:
2956+
If document is not fully active:
29112957
</p>
29122958
<ol>
29132959
<li>
@@ -3066,7 +3112,7 @@ <h4 title="Aborting a document load">7.5.11. 文書~読込nの中止-法</h4>
30663112
%文書 の`読込ng中における~WebDriver-BiDi用の~navi~ID$doc ~NEQ ~NULL
30673113
]:
30683114
3069-
If document's during-loading navigation ID for WebDriver BiDi is non-null, then:
3115+
If document's during-loading navigation ID for WebDriver BiDi is non-null:
30703116
</p>
30713117
<ol>
30723118
<li>
@@ -3091,7 +3137,7 @@ <h4 title="Aborting a document load">7.5.11. 文書~読込nの中止-法</h4>
30913137
%文書 には`作動中な構文解析器$がある
30923138
]:
30933139
3094-
If document has an active parser, then:
3140+
If document has an active parser:
30953141
</p>
30963142
<ol>
30973143
<li>

0 commit comments

Comments
 (0)