/
521.txt
830 lines (650 loc) · 41.1 KB
/
521.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
[91] [DFN[[[fetch]]]] は、 [[URL]] などを指定して、それに対応する[[資源]]を取得する操作です。
[152] [[navigate]]、[[画像]]などの埋め込み、 [[XHR]] をはじめとする [[API]] などから呼び出される、
[[Webブラウザー]]を構成する重要な[[アルゴリズム]]の1つです。[[利用者]]の操作や[[著者]]の指示がどのように[[プロトコル]]上のやり取りに変換されるかが
[[fetch]] により記述されています。
* 仕様書
[151] [[fetch]] は、 [DFN[[[Fetch Standard]]]] で規定されています。
[REFS[
- [100] '''[CITE@en-US[Fetch Standard]] ([TIME[2015-10-15 18:48:08 +09:00]] 版) <https://fetch.spec.whatwg.org/>'''
-- [101] [CITE@en-US[Fetch Standard]] ([TIME[2015-10-15 18:48:08 +09:00]] 版) <https://fetch.spec.whatwg.org/#main-fetch>
- [121] [CITE@en[Upgrade Insecure Requests]] ([TIME[2015-10-07 03:24:10 +09:00]] 版) <https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request>
- [115] [CITE@en[RFC 6797 - HTTP Strict Transport Security (HSTS)]] ([TIME[2015-10-17 03:00:32 +09:00]] 版) <http://tools.ietf.org/html/rfc6797#section-8.3>
]REFS]
* プロトコル
[48] [[Fetch]] は次の[[プロトコル]]や[[アルゴリズム]]と深く関係しています。
[FIG(short list)[
- [[HTTP]]
-- [[HTTPキャッシュ]]
-- [[HTTP認証]]
-- [[HTTP CORS Protocol]]
-- [[HTTPリダイレクト]]
-- [[HSTS]]
-- [[PKP]]
-- [[HTTPクッキー]]
-- [[HTTPS]]
-- [[service identity]]
-- [CODE(HTTP)@en[[[Upgrade-Insecure-Requests:]]]]
-- [[Clear Site Data]]
-- [[優先度]]
-- [[WebSocket]]
-- [[Client Hints]]
- [[FTP]]
- [CODE(DOMi)@en[[[Blob]]]]
- [CODE(URI)@en[[[data:]]]]
- [[SRI]]
- [[CSP]]
- [CODE(HTTP)@en[X-Frame-Options:]]
- [[Referrer Policy]]
- [[port blocking]]
- [[Service Worker]]
- [[MIME Sniffing]]
- [[ハイパーリンクをたどる]]
- [[navigate]]
- [[ダウンロード]]
- [[イベントループ]]
- [[インクリメンタルレンダリング]]
- [[preload scanner]]
- [[NEL]]
]FIG]
* 読み込みタイミング
[47] [[HTML]] における [[fetch]] とその後の処理の実施タイミングについては、
次の機能が存在または提案されています。
[FIG(short list)[
- [CODE(HTMLa)@en[[[defer]]]]
- [CODE(HTMLa)@en[[[async]]]]
- [CODE(HTML)@en[[[rel=dns-prefetch]]]]
- [CODE(HTML)@en[[[rel=prefetch]]]]
- [CODE(HTML)@en[[[rel=preload]]]]
- [CODE(HTML)@en[[[rel=prerender]]]]
- [[HTML Imports]]
- [CODE(HTMLa)@en[[[lazyload]]]]
- [CODE(HTMLa)@en[[[dependson]]]]
- [CODE(HTMLa)@en[[[loadpolicy]]]]
- [CODE(HTMLa)@en[[[as]]]]
]FIG]
[159] [CODE(HTML)@en[[[<script src>]]]] も参照。
* fetch を使う操作
[92] [[fetch]] を使う操作や機能には、次のものがあります。
[FIG(list middle)[
- [CODE(JS)@en[[[document.load]]]]
- [[obtain the resource]] ([CODE(HTMLe)@en[[[link]]]])
- [CODE(HTMLa)@en[[[ping]]]]
- [[favicon]]
- [CODE(HTMLe)@en[[[img]]]] ([CODE(HTMLa)@en[[[src]]]], [CODE(HTMLa)@en[[[srcset]]]])
- [CODE(HTMLe)@en[[[embed]]]]
- [CODE(HTMLe)@en[[[object]]]]
- [CODE(HTMLa)@en[[[poster]]]] ([CODE(HTMLe)@en[[[video]]]])
- [[媒体要素]] ([CODE(HTMLa)@en[[[src]]]])
- [CODE(HTMLe)@en[[[track]]]]
- [CODE(HTML)@en[[[<input type=image>]]]]
- [[navigate]]
- [[application cache download process]] ([CODE(HTMLa)@en[[[manifest]]]])
- [CODE(DOMi)@en[[[EventSource]]]]
- [[スクリプトのfetch]]
-- [CODE(HTMLe)@en[[[script]]]]
-- [[run a worker]]
- [CODE(DOMm)@en[[[importScripts]]]]
- [CODE(DOMi)@en[WebSocket]]
]FIG]
** fetch を使わない HTTP アクセス
[75] [[著者]]が直接何らかの形で発生される [[HTTP]] アクセスは、
将来的にはすべて [[fetch]] 操作を呼び出す形で正確に規定されるようになると思われます。
[77] 次の処理は、 [[fetch]] を使わない形で規定されています。
今後 [[fetch]] を使う形に改められるかどうかは不明です。
[FIG(short list)[
- [[PKP]] の [CODE[[[report-uri]]]]
- [[OCSP]]
]FIG]
* fetch 操作
[102] [[fetch]] は次のような部分操作により構成されます。
[FIG(list)[
- [[fetch]]
-- [[main fetch]]
--- [[basic fetch]]
---- [[HTTP fetch]]
----- [[HTTP-redirect fetch]]
------ [[HTTP-network-or-cache fetch]]
------- [[HTTP-network fetch]]
----- [[CORS-preflight fetch]]
]FIG]
* fetch に相当する操作
[72] [[navigate]] は、 [CODE(URI)@en[[[javascript:]]]] などの処理で
[[fetch]] に相当する操作を定義しています。
;; [[navigate]] 参照。
[73] [[navigate]] は、本来の [[fetch]] のかわりに [[AppCache]] からの [[fetch]]
を行うことがあります。
* main fetch
[103] [[main fetch]] は、まず[[要求]]を検査し、
必要ならエラーを返したり、書き換えたりします。具体的には、次の処理が含まれます。
[FIG(list)[
- [[HSTS]] や [CODE(HTTP)@en[[[upgrade-insecure-requests]]]] が適用されるなら、
[[URL]] を [CODE(URI)@en[[[https:]]]] に書き換えます。
- [[CSP]]、[[混合内容]]、[[port blocking]]、外部参照の制約が適用されるなら、[[ネットワークエラー]]を返します。
- [[CSP]] の報告が求められているなら、検査して必要に応じて報告します。
- [[Referrer Policy]] の指定に従って [[referrer]] を設定します。
]FIG]
[141] 正確には、次のようにします [SRC[>>101]]。
[FIG(steps)[
= [104] [VAR[要求]]の[F[[[局所URLのみフラグ]]]]が設定されていれば、
== [105] [VAR[要求]]の[F[[[現在URL]]]]が[[局所URL]]でないなら、
=== [106] [VAR[応答]]を、[[ネットワークエラー]]に設定します。 [SRC[>>101]]
= [140] [[[VAR[要求]]についてCSP違反の報告]]を行います [SRC[>>101]]。
= [107] [DFN[Upgrade [VAR[request]] to an a priori authenticated URL, if appropriate]] [SRC[>>101]]:
== [123] [VAR[要求]]が [[navigation request]] なら、
[FIG(list)[
- [124] [VAR[要求]]の[F[[[URL]]]]が[[a priori insecure]]
- [125] [VAR[要求]]の[F[[[URL]]]]の[F[[[ホスト]]]]が[[preloadable HSTS host]] でない
- [126] その他[[利用者エージェント]]が適切と判断する場合
([[Upgrade-Insecure-Requests]>>53])
]FIG]
... のいずれかの場合、
=== [122] [VAR[要求]]の[F[[[ヘッダーリスト]]]]に名前 [CODE(HTTP)@en[[[Upgrade-Insecure-Requests]]]]
値 [CODE[[[1]]]] の[[ヘッダー]]を[[末尾に追加]]します [SRC[>>121]]。
== [127]
[FIG(list)[
- [132] [VAR[要求]]が [[navigation request]] ではない
- [130] [VAR[要求]]が[[フォーム提出]]である
- [198] [VAR[要求]]の[F[対象閲覧文脈]]が[[入れ子閲覧文脈]]である
- [129] [VAR[クライアント]]の[F[[[非保安navigate格上げ集合]]]]に
([VAR[要求]]の[F[[[URL]]]]の[F[[[ホスト]]]], [VAR[要求]]の[F[[[URL]]]]の[F[[[ポート]]]]) が含まれている
]FIG]
... のいずれかの場合 [SRC[>>121]]、
=== [131] [[[VAR[クライアント]]について非保安要求を格上げするべき]]かどうかが
「格上げしない」でなければ [SRC[>>121]]、
==== [128] [VAR[要求]]の[F[[[URL]]]]の[F[[[scheme]]]] が [CODE[[[http]]]] なら、
===== [133] [VAR[要求]]の[F[[[URL]]]]の[F[[[scheme]]]]を、 [CODE[[[https]]]] に設定します。 [SRC[>>121]]
==== [134] それ以外なら、
===== [135] [VAR[要求]]の[F[[[URL]]]]の[F[[[ポート]]]]が [CODE[[[80]]]] なら、
====== [136] [VAR[要求]]の[F[[[URL]]]]の[F[[[ポート]]]]を、[CODE[[[443]]]] に設定します。 [SRC[>>121]]
= [187]
[FIG(list)[
- [162] [VAR[要求]]について [[should be blocked due to a bad port]] が「[[blocked]]」
- [108] [[should fetching [VAR[request]] be blocked as mixed content]] が「[[blocked]]」
- [110] [[should fetching [VAR[request]] be blocked by Content Security Policy]] が
「[[blocked]]」
]FIG]
... のいずれかを満たすなら、
== [111] [VAR[応答]]を、[[ネットワークエラー]]に設定します。 [SRC[>>101]]
= [190] '''[[Referrer]] の設定''':
== [109] [VAR[要求]]の[F[参照元方針]]が[[空文字列]]で、
[VAR[要求]]の[F[クライアント]]が [[null]] で''ない''なら、
=== [163] [VAR[要求]]の[F[参照元方針]]を、[VAR[要求]]の[F[クライアント]]の[F[参照元方針]]に設定します。 [SRC[>>101]]
== [188] [VAR[要求]]の[F[参照元方針]]が[[空文字列]]なら、
=== [189] [VAR[要求]]の[F[参照元方針]]を、 [CODE[no-referrer-when-downgrade]]
に設定します。 [SRC[>>101]]
== [112] [VAR[要求]]の[F[[[referrer]]]]が「[[no-referrer]]」でないなら、
=== [113] [[要求]]の[F[[[referrer]]]]を、 [[determine [VAR[request]]'s referrer]]
の結果に設定します [SRC[>>101]]。
= [114]
[FIG(list)[
- [177] [VAR[要求]]の[F[現在URL]]の[F[scheme][URL scheme]]が
[CODE(URI)@en[http][http:]]
- [178] [VAR[要求]]の[F[現在URL]]の[F[ホスト]]が[[ドメイン]]
- [117] [VAR[要求]]の[F[現在URL]]の[F[ホスト]]が[[既知HSTSホストドメイン一致]]により、
[FIG(list)[
- [118] [[合同一致]]する[[既知HSTSホスト]]が存在する
- [119] [[超ドメイン一致]]する[[既知HSTSホスト]]が存在してその
[CODE(HTTP)@en[[[includeSubDomains]]]] [[指令]]が指定されている
]FIG]
... のいずれかを満たす
]FIG]
... のすべてを満たすなら、
== [179] [VAR[要求]]の[F[現在URL]]の[F[scheme][URL scheme]]を、
[CODE(URI)@en[https][https:]] に設定します [SRC[>>101]]。
]FIG]
;; [116] [[WebSocket]] の場合も [[URL scheme]] が [CODE(URI)@en[https:]]/[CODE(URI)@en[http:]]
に書き換わっているので、 [[HSTS]] が適用されます。
;; [180] [[HSTS]] では[F[現在URL]]の[F[ポート]]は書き換えられません。
[[既定のポート番号]]が省略されている場合[F[ポート]]は [[null]]
なので、 [CODE(URI)@en[http:]] の場合 [CODE[80]] を暗黙に表していたのが、
[CODE(URI)@en[https:]] に書き換わって [CODE[443]] を暗黙に表すのにかわります。
[120] その後実際の処理に入ります。
* [CODE(URI)@en[ftp:]] の fetch
[182] [CODE(URI)@en[ftp:]] 参照。
* [CODE(URI)@en[file:]] の fetch
[181] [CODE(URI)@en[file:]] 参照。
* ブラウザー依存の処理
[183] [[開発者コンソール]]の機能や、[[ブラウザー拡張]]の [[API]] が、
[[fetch]] の処理の進捗を観察したり、時には介入したりすることがあります。
[FIG(list)[
- [184] 多くの [[Webブラウザー]]の[[開発者コンソール]]は、
[[fetch]] の各段階の時刻や[[要求]]や[[応答]]の詳細などを記録・表示できる機能を持っています。
- [185] [[Chrome拡張]]の [CODE[chrome.webRequest]] [[API]] を使うと、
[[fetch]] の各段階で[[コールバック関数]]を呼び出させることができます。
更には、[[要求]]や[[応答]]を書き換えることもできます。
]FIG]
* 歴史
[54] [[fetch]] は [[Webブラウザー]]の必須の処理で、 [[WWW]] の誕生以来ずっと (暗黙的に)
存在していました。 [[navigate]] の一部としては1990年頃の [[WWW]]
の誕生以来、[[ページ]]の[[レンダリング]]の一部としては1994年の [CODE(HTMLe)@en[[[img]]]]
[[要素]]の追加以来、 [[Webブラウザー]]には [[fetch]] 相当の処理が何らかの形で含まれていました。
[142] しかし90年代には、「指定された [[URL]] を[[解決]]して処理する」
程度の曖昧な規定しかありませんでしたし、実際それで十分でした。
** fetch の明文化
[53] 仕様上の[[アルゴリズム]]としての [[fetch]] は、2008年8月に [[HTML5]]
(現 [[HTML Standard]]) で定義されました [SRC[>>57]]。
;; [55] それまで [[HTML5]] は各[[要素]]や [[API]]、[[navigate]] の挙動の規定で[[一般動詞]]
[[fetch]] を使っており、挙動を明確化する必要があるとの [[TODO]]
が記載はされていましたが、仕様上の用語としてはこの時追加されました。
[56] この時期は[[HTMLの構文解析器]]や既存の[[HTML要素]]、[[navigate]] や [[AppCache]]
が [[HTML5]] で規定された後で、[[イベントループ]]や [[WF2]] の統合よりは前に当たります。
それまで明確に文書化されてこなかった [[HTML]] の諸[[要素]]・[[API]]
の挙動を定義していく中での流れでした。 [[fetch]] が定義された後間もなく[[イベントループ]]が定義され、
[[fetch]] との関係も規定されています [SRC[>>52]]。
[59] とはいえこの当時の [[fetch]] は非常に単純で、 [[URL]] を[[解決]]してから
[[HTTP]] の規定に従う、といった程度の内容でした。 [[Webブラウザー]]の挙動を記述するには、
更なる詳細化が必要でした。
[REFS[
- [57] [CITE@en[Web Applications 1.0 r1971 Define fetching. (bug 5848)]]
([TIME[2008-08-02 18:23:00 +09:00]] 版)
<https://html5.org/r/1971>
- [58] [CITE@en[Bug 5848 – Write the "fetching" section]]
([TIME[2015-02-07 01:27:20 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=5848>
- [52] [CITE@en[Web Applications 1.0 r2074 Define event loops, task queues, etc; Make 'fetching' use this mechanism (everything will in due course); Fix some cross-references around 'interactive content'.]]
([TIME[2008-08-16 09:52:00 +09:00]] 版)
<https://html5.org/r/2074>
]REFS]
[51] [CITE@en[Web Applications 1.0 r2525 CSRF mitigation -- add Origin header to all non-GET requests.]]
([TIME[2008-12-02 20:26:00 +09:00]] 版)
<https://html5.org/r/2525>
[49] [CITE@en[Web Applications 1.0 r4084 Clarify how pushState() and transfering nodes between documents affects Referer: computation in the fetch algorithm.]]
([TIME[2009-10-06 08:39:00 +09:00]] 版)
<https://html5.org/r/4084>
[50] [CITE@en[Web Applications 1.0 r4011 Synchronise with the latest Origin spec rules and semantics.]]
([TIME[2009-09-29 08:51:00 +09:00]] 版)
<https://html5.org/r/4011>
[1] [CITE@en[Web Applications 1.0 r5451 Define how to handle <img src='mailto:foo@example.com'>Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10247]]
( ([TIME[2010-09-09 07:39:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5450&to=5451>
[2] [CITE[Widget Access Request Policy]]
( ([TIME[2012-02-04 04:00:27 +09:00]] 版))
<http://dev.w3.org/2006/waf/widgets-access/>
[3] [CITE['''['''whatwg''']''' Image cache behaviour]]
([TIME[2012-03-22 13:10:14 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-March/035137.html>
[4] [CITE[295942 – Mozilla will ignore javascript-triggered image reload even if image is expired]]
([TIME[2012-03-22 14:20:52 +09:00]] 版)
<https://bugzilla.mozilla.org/show_bug.cgi?id=295942>
[5] [CITE[''''''[''''''whatwg'''''']'''''' '''['''html5''']''' r7128 - '''['''giow''']''' (2) Try to define img synchronous loading. Affected topics: HTML]]
( ([TIME[2012-06-14 02:29:09 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-June/036386.html>
[6] [CITE@en[Debunking Responsive CSS Performance Myths - igvita.com]]
( ([[Ilya Grigorik]] 著, [TIME[2012-06-21 08:08:59 +09:00]] 版))
<http://www.igvita.com/2012/06/14/debunking-responsive-css-performance-myths/>
** HTML への CORS の導入
;; [60] これまでの [[CORS]] の歴史は、 [[CORS]] の項を参照。
[7] [CITE@en[Web Applications 1.0 r7297 Cleanup of the 'potentially CORS-enabled fetch' algorithm to actually make sense.]]
( ([TIME[2012-08-30 05:29:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=7296&to=7297>
[8] [CITE@en[Web Applications 1.0 r7341 Attempt to actually define what Referer headers are used for a whole host of things that were poorly defined. Also: cleanup of a bunch of editorial mistakes I found from past such attempts. Mark every fetch algorithm use for sanity in the future. Block data:, javascript:, and about:blank referrers. Note: This relies on not-yet-done changes to CORS and XHR.]]
( ([TIME[2012-09-13 08:14:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=7340&to=7341>
** Fetch Standard
[61] [[Web Applications 1.0]] (現 [[HTML Standard]]) の [[fetch]]
は従来の [[fetch]] に[[猿パッチ]]のような形で [[CORS]] を継ぎ足していたため複雑で、
リファクタリングが必要と言われていましたが、いつどのような形で行うかは未定でした。
[[Ian Hickson]] は改訂の必要性は認めつつも、他の作業より優先度は低いとしていました。
[143] [[annevk]] は2012年夏に ([[Opera]] および) [[W3C]] を離れたのを機に
[[XHR]] や [[CORS]] を [[WHATWG]] に移管しましたが、 [[CORS]] と [[fetch]]
を統合して整理する必要があるとし、 [[WHATWG]] [[CORS]] 仕様書の[[ドメイン名]]に
「fetch」を選びました [SRC[>>9]]。
[9] [CITE@en-US[Cross-Origin Resource Sharing Standard]]
( ([TIME[2012-09-13 21:51:45 +09:00]] 版))
<http://fetch.spec.whatwg.org/>
[10] [CITE[IRC logs: freenode / #whatwg / 20121126]]
( ([TIME[2012-12-09 01:19:22 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20121126>
[144] 2013年には [[annevk]] が実際の作業を開始し、 [[HTML]] の [[Fetch]]
と [[CORS]] と [[XHR]] の中枢部分に相当する一連のアルゴリズムを改めて記述し、
これを [[Fetch Standard]] としました。
[145] 仕様書としての [[CORS]] はこれにより発展的に消滅しました。 [[XHR]]
の中枢部分は [[Fetch]] の一部となり、仕様書としての [[XHR]] は [[API]]
のみの規定となりました。 [[HTML]] の [[Fetch]] は、
移行時にエンバグしないよう慎重に検討する必要があるとして、
この時点では変更されませんでした。そのためこの後2年強にわたり、
[[Fetch Standard]] と [[HTML Fetch]] が併存することとなりました。
(あくまで仕様書として分裂した状態なだけで、実装上は同じものでした。)
[11] [CITE[IRC logs: freenode / #whatwg / 20130211]]
( ([TIME[2013-02-16 17:09:58 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130211>
[12] [CITE[IRC logs: freenode / #whatwg / 20130225]]
( ([TIME[2013-03-02 19:44:27 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130225#l-697>
[13] [CITE[IRC logs: freenode / #whatwg / 20130305]]
( ([TIME[2013-03-12 20:47:52 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130305>
[14] [CITE[IRC logs: freenode / #whatwg / 20130305]]
( ([TIME[2013-03-12 20:47:52 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130305#l-151>
[15] [CITE[IRC logs: freenode / #whatwg / 20130315]]
( ([TIME[2013-03-27 00:16:47 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130315#l-704>
[16] [CITE@en[HTTP Fetch Policy - WHATWG Wiki]]
( ([TIME[2013-03-24 05:08:34 +09:00]] 版))
<http://wiki.whatwg.org/wiki/HTTP_Fetch_Policy>
[17] [CITE[IRC logs: freenode / #whatwg / 20130411]]
( ([TIME[2013-04-13 15:40:14 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130411#l-686>
[18] [CITE[IRC logs: freenode / #whatwg / 20130415]]
( ([TIME[2013-04-19 08:52:25 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130415#l-416>
[19] [CITE[IRC logs: freenode / #whatwg / 20130418]]
( ([TIME[2013-04-25 21:57:07 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130418#l-839>
[20] [CITE[IRC logs: freenode / #whatwg / 20130422]]
( ([TIME[2013-05-03 23:39:29 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130422#l-691>
[21] [CITE[IRC logs: freenode / #whatwg / 20130502]]
( ([TIME[2013-05-12 22:30:49 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130502>
[22] [CITE[''''''[''''''whatwg'''''']'''''' Fetch: please review!]]
( ([TIME[2013-05-22 09:50:41 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-May/039600.html>
[23] [CITE@en[Fetch groups]]
( ([[Anne van Kesteren]] 著, [TIME[2013-06-25 23:09:37 +09:00]] 版))
<http://lists.w3.org/Archives/Public/www-archive/2013Jun/0086.html>
[24] [CITE@en[Re: CSP and Fetch]]
( ([[Anne van Kesteren]] 著, [TIME[2014-01-24 09:36:13 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-webappsec/2014Jan/0161.html>
** Fetch API
[146] [[XHR]] には引き続き新機能の追加の要望が出ていましたが、
[[XHR]] の歴史的経緯を反映した複雑な [[API]]
を更に複雑化させることは好ましくないとも考えられていました。
[[Extensible Web]] の流れもあり、 [[Fetch Standard]] の開発中から [[annevk]] らは
(仕様書上の) [[Fetch]] アルゴリズムに近い低レベルの [[API]]
を規定することを考えていました。
[147] [[Service Workers]] の開発で新たな [CODE[[[fetch]]]] [[API]]
の必要性が高まり支持が集まった結果、2014年にはこの [CODE[[[fetch]]]] [[API]]
の規定が [[Fetch Standard]] に追加されました。
;; [148] 初期の議論は [[Service Workers]] の [[GitHub Issues]] で行われています。
[25] [CITE[IRC logs: freenode / #whatwg / 20140520]]
( ([TIME[2014-05-23 19:04:39 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140520>
[26] [CITE[Sketch for Fetch API, details and organization TBD · b40f990 · whatwg/fetch]]
( ([TIME[2014-05-29 04:54:26 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/b40f99003d31abfe23bbcd84d13e62c52d6267ce>
[27] [CITE[Request constructor and fetch() method, add RedirectResponse named const... · 2e82a88 · whatwg/fetch]]
( ([TIME[2014-05-29 11:05:37 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/2e82a88634f0cd23de1977b11b36d1e907d01f5c>
[28] [CITE[Clean up new Request and fetch() · 97f680c · whatwg/fetch]]
( ([TIME[2014-05-30 02:50:41 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/97f680c318a4b4bdc461ae607f245fe1441b6877>
[29] [CITE[Clean up fetch() steps · 3445fc0 · whatwg/fetch]]
( ([TIME[2014-05-30 02:51:06 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/3445fc0f4f667bd9aa2487351330cea82c93885f>
[30] [CITE@en[Fetch API]]
( ([[Anne van Kesteren]] 著, [TIME[2014-05-29 21:57:01 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-webapps/2014AprJun/0687.html>
[31] [CITE[Update request's referrer per https://www.w3.org/Bugs/Public/show_bug.cg... · 8ab38bf · whatwg/fetch]]
( ([TIME[2014-06-14 13:51:23 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/8ab38bf62ace6c221c544add7cc188c799d6acc7>
[32] [CITE[IRC logs: freenode / #whatwg / 20140812]]
( ([TIME[2014-08-13 10:20:45 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140812>
[33] [CITE[Dependencies & weights (aka, priority) - Google ドキュメント]]
( ([TIME[2014-08-15 02:18:51 +09:00]] 版))
<https://docs.google.com/document/d/1jSpWc6jkrUoYtGWcxev9Blkkv9RhoO1XtqinBvXqhgY/edit>
[34] [CITE[Request Quest]]
( ([TIME[2013-06-28 16:18:32 +09:00]] 版))
<http://jakearchibald.github.io/request-quest/>
[35] [CITE@en[Web Applications 1.0 r8799 Stop using the word 'asynchronously', and reduce usage of the word 'synchronous'.]]
( ([TIME[2014-09-20 08:19:00 +09:00]] 版))
<https://html5.org/r/8799>
[36] [CITE@en[Web Applications 1.0 r8846 Rename API referrer source to just referrer source, for fetch]]
( ([TIME[2014-11-08 07:42:00 +09:00]] 版))
<https://html5.org/r/8846>
[37] [CITE[IRC logs: freenode / #whatwg / 20130624]]
( ([TIME[2013-06-29 00:36:47 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130624>
[38] [CITE[Fetch integration. Please review, this is major. MAJOR. Right. · c99000a · whatwg/xhr]]
( ([TIME[2013-10-30 06:06:33 +09:00]] 版))
<https://github.com/whatwg/xhr/commit/c99000a96dada32b0aed566563c759256f0b2d9a>
[39] [CITE@en[XMLHttpRequest and Fetch]]
( ([[Anne van Kesteren]] 著, [TIME[2013-10-23 01:44:25 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-webapps/2013OctDec/0237.html>
[40] [CITE[Fetch is the new CORS (and more). Also fix a few minor bugs thanks to @j... · 9b60830 · whatwg/xhr]]
( ([TIME[2014-01-08 07:23:20 +09:00]] 版))
<https://github.com/whatwg/xhr/commit/9b608301704e6360f905e1a93f9310e209fec5a5>
[41] [CITE[Rely more on Fetch. More to come. · a50621b · whatwg/xhr]]
( ([TIME[2014-01-08 07:23:25 +09:00]] 版))
<https://github.com/whatwg/xhr/commit/a50621b2247dc42a2e9521f5055a4d5b71d0685e>
[42] [CITE[Move some request security checks to Fetch so other APIs can do the same... · 126f3db · whatwg/xhr]]
( ([TIME[2014-01-08 07:25:56 +09:00]] 版))
<https://github.com/whatwg/xhr/commit/126f3db30a67ff2be772ae3682206011d89301eb>
[43] [CITE[Flashと特定ブラウザの組み合わせでcross originでカスタムヘッダ付与が出来てしまう問題が未だに直っていない話]]
( ([TIME[2014-02-19 08:05:06 +09:00]] 版))
<https://gist.github.com/mala/8857629>
[44] [CITE[カスタムヘッダを使ったCSRF対策は安全に使えるかどうかということについて - 金利0無利息キャッシング – キャッシングできます - subtech]]
( ([TIME[2014-02-19 08:15:55 +09:00]] 版))
<http://subtech.g.hatena.ne.jp/mala/20130304/1362392723>
[45] [CITE[IRC logs: freenode / #whatwg / 20140515]]
( ([TIME[2014-05-17 18:12:00 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140515>
[46] [CITE[REFERRER: Cleaning up the integration with Fetch. · 82e1046 · w3c/webappsec]]
( ([TIME[2014-06-16 03:04:34 +09:00]] 版))
<https://github.com/w3c/webappsec/commit/82e1046cd2d00c4b286abdf3a336511207ff9750>
[63] [CITE@en[Extract networking into its own set of steps to prepare for https://www.... · 6c10655 · whatwg/fetch]]
([TIME[2015-02-19 12:30:35 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/6c10655c960d0cd95d739d1604f48c11828e9499>
[64] [CITE@en[Introduce HTTP request grouping for https://www.w3.org/Bugs/Public/show_... · 44546f2 · whatwg/fetch]]
([TIME[2015-02-19 12:31:42 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/44546f2f850bdd49bd08d44ce68188b9ba239a93>
[FIG(quote)[
[FIGCAPTION[
[65] [CITE@en[Chromium Blog: Chrome 42 Beta: Push Notifications, Promoting Add to Home Screen and ES6 Classes]]
([TIME[2015-03-14 09:17:20 +09:00]] 版)
<http://blog.chromium.org/2015/03/chrome-42-beta-push-notifications_12.html>
]FIGCAPTION]
> The Fetch API is now available in the window context, shared workers, and dedicated workers, providing a new promise-based standard for AJAX requests.
]FIG]
[FIG(quote)[
[FIGCAPTION[
[66] ([TIME[2009-08-03 07:55:07 +09:00]] 版)
<http://www.adambarth.com/papers/2009/jackson-barth-bortz-shao-boneh-tweb.pdf>
]FIGCAPTION]
> Prohibited access. Some kinds of network access are prohibited even within
> the same origin. Internet Explorer 7 blocks port numbers 19 (chargen), 21
> (FTP), 25 (SMTP), 110 (POP3), 119 (NNTP), and 143 (IMAP). Firefox 2 and
> Safari 3 block those plus 51 additional port numbers. Some of these port restrictions
> prevent Web sites from launching denial-of-service attacks or sending
> spam email, whereas others prevent universal cross-site scripting via the
> HTML form protocol attack [Topf 2001].
]FIG]
[FIG(quote)[
[FIGCAPTION[
[67] [CITE[IRC logs: freenode / #whatwg / 20150330]]
([TIME[2015-03-31 11:13:04 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20150330#l-171>
]FIGCAPTION]
> # '''['''10:39''']''' <JakeA> annevk: when is the right time to make response/request.body a ReadableStream in the fetch spec?
> # '''['''11:08''']''' <annevk> JakeA: I was waiting for "tee" to be defined
]FIG]
[68] [CITE@en[Preparation for merge · Issue #25 · yutakahirano/fetch-with-streams]]
([TIME[2015-03-31 11:14:16 +09:00]] 版)
<https://github.com/yutakahirano/fetch-with-streams/issues/25>
[FIG(quote)[
[FIGCAPTION[
[69] [CITE[IRC logs: freenode / #whatwg / 20150330]]
([TIME[2015-03-31 11:14:58 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20150330#l-171>
]FIGCAPTION]
>
> # '''['''15:42''']''' <wanderview> annevk: at this point I do not feel comfortable implementing that... I'm planning to talk to sicking in a couple weeks to try to iron out our differences
> # '''['''15:45''']''' <annevk> JakeA: given wanderview's statement and not hearing anything from Apple/Microsoft I'm inclined to hold off on integrating streams for now
> # '''['''15:47''']''' <JakeA> annevk: makes sense, wasn't aware of wanderview's concerns
> # '''['''15:47''']''' <wanderview> annevk: I guess to clarify, I'm personally ok with implementing the fetch body stream bit... but I need to address sicking's concerns first... and it feels like we're further away from agreement than I thought before
> # '''['''15:49''']''' <wanderview> JakeA: not my personal concerns... we need some internal consensus before moving forward, though
]FIG]
[70] [CITE@en[Integrate with UPGRADE. Fixes https://www.w3.org/Bugs/Public/show_bug.cg... · whatwg/fetch@fd90b5a]]
([TIME[2015-03-31 11:21:26 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/fd90b5afd0ff09284c2a3cd093c577d17ce06898>
[71] [CITE@en[Prefer GitHub participation. Use URLs that include the scheme. · whatwg/fetch@4b58ddc]]
([TIME[2015-04-06 11:37:17 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/4b58ddc9435411eb5f7698d961e57d512f0f541b>
[74] [CITE@en[Extract main fetch in preparation for setting request headers based on c... · whatwg/fetch@ea4dd32]]
([TIME[2015-05-05 11:07:15 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/ea4dd323c136aa4f348e750811b5e239685fef31>
[78] [CITE@en[Fetch API Streaming Response Sample]]
([TIME[2015-05-27 12:26:34 +09:00]] 版)
<https://googlechrome.github.io/samples/fetch-api/fetch-response-stream.html>
[79] [CITE@en[Write a short introduction. Fixes #11. · whatwg/fetch@8bd9f55]]
([TIME[2015-07-06 11:52:20 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/8bd9f559187281894f65c2a1bdc2ff556aabad1b>
[80] [CITE@en[Re: Definition of secure origin in MIX and POWER]]
([[Mike West]] 著, [TIME[2015-07-09 01:25:53 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-webappsec/2015Jul/0080.html>
[81] [CITE@en[Support "manual" redirect mode for navigation requests. Fixes #66. · whatwg/fetch@c5dc814]]
([TIME[2015-07-16 13:14:20 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/c5dc81406f588ad6207c61d475c96f7649e40578>
[82] [CITE@en[MIX: First stab at SW integration. · w3c/webappsec@e577d4d]]
([TIME[2015-07-21 11:22:27 +09:00]] 版)
<https://github.com/w3c/webappsec/commit/e577d4d5746bd33248a7dd4dbe0db515c16f20fb>
[83] [CITE@en[MIX: @annevk's feedback on the Service Worker loophole. · w3c/webappsec@048eae9]]
([TIME[2015-07-21 11:22:53 +09:00]] 版)
<https://github.com/w3c/webappsec/commit/048eae9ae720ce412fe5244210e6fd31a1003092>
[84] [CITE@en[MIX: Further explain the SW implications. · w3c/webappsec@4ead56c]]
([TIME[2015-07-21 11:23:35 +09:00]] 版)
<https://github.com/w3c/webappsec/commit/4ead56ce75e24e29bff67e905ce2335026c6a00d>
[85] [CITE@en[Group task annotations and make sure service workers also read a requ… · whatwg/fetch@e2f0a96]]
([TIME[2015-07-28 12:08:05 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/e2f0a96fafa782b2ca5a0ac7fdf98f5ae4c1f3f9>
** HTML との統合
[149] 2015年9月にはついに [[HTML Fetch]] が廃止され、 [[Fetch Standard]]
に完全に統合されました。
[150] 更に、 [[CSP]] も [[Fetch Standard]] や [[HTML Standard]]
のアルゴリズムとの関係が明確になる形で再編成が進みました。
[86] [CITE@en[Remove "block cookies" as XMLHttpRequest already uses Fetch · whatwg/html@2f0c615]]
([TIME[2015-09-08 15:03:46 +09:00]] 版)
<https://github.com/whatwg/html/commit/2f0c6156aa4d825e007b26600e42716e32d12b86>
[87] [CITE@en[Fetch integration · Issue #95 · whatwg/html]]
([TIME[2015-09-08 15:12:03 +09:00]] 版)
<https://github.com/whatwg/html/issues/95>
[88] [CITE@en[Drafting the patches to HTML · Issue #106 · whatwg/fetch]]
([TIME[2015-09-08 15:13:06 +09:00]] 版)
<https://github.com/whatwg/fetch/issues/106>
[89] [CITE@en[24080 – (fetch) Integrate with Fetch specification]]
([TIME[2015-09-17 14:45:03 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=24080>
[90] [CITE@en[Integrate Fetch into HTML · whatwg/html@7c5555a]]
([TIME[2015-09-18 17:51:59 +09:00]] 版)
<https://github.com/whatwg/html/commit/7c5555a16f2920c02244c10756bb2f1a11e87a22>
[93] [CITE@en[Only replace charset parameter values that do not case-insensitively … · whatwg/xhr@a1f8e14]]
([TIME[2015-09-22 11:22:20 +09:00]] 版)
<https://github.com/whatwg/xhr/commit/a1f8e140fef9e3ee8255ef58a2c71ff9d75933d2>
[94] [CITE[IRC logs: freenode / #whatwg / 20151005]]
([TIME[2015-10-06 13:05:31 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20151005>
[95] [CITE@en[Fiddling with Fetch to catch synthetic responses. · w3c/webappsec-csp@a5e2d3b]]
([TIME[2015-10-07 13:48:36 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/a5e2d3b6c595a23be70ddb28d468ace3059c40ff>
[96] [CITE@en[Update Fetch with shiny, new CSP hooks · whatwg/fetch@8ce550b]]
([TIME[2015-10-16 14:30:10 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/8ce550b53c53e2b6e8376373b94d66b2eeada8f8>
[97] [CITE@en[Drop Fetch issues after https://github.com/whatwg/fetch/commit/8ce550… · w3c/webappsec-csp@c2b6452]]
([TIME[2015-10-16 14:31:38 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/c2b64522fb6f4cb4f683344ee3cd890dfdcc515d>
[98] [CITE@ja[MFSA 2015-115: Fetch を用いたクロスオリジン制限回避]]
([TIME[2015-10-16 05:37:35 +09:00]] 版)
<http://www.mozilla-japan.org/security/announce/2015/mfsa2015-115.html>
[99] [CITE@en[Fetch & Streams meeting]]
([[Anne van Kesteren]] 著, [TIME[2015-10-08 18:52:51 +09:00]] 版)
<https://lists.w3.org/Archives/Public/www-archive/2015Oct/0002.html>
[137] [CITE@en[Close #141: fix 304 handling · whatwg/fetch@1a2f6b4]]
([TIME[2015-11-01 19:39:23 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/1a2f6b49d616cfd74536c1a8dbed8b5c1215d548>
[138] [CITE@en[Split reporting and enforcement for Fetch. · w3c/webappsec-csp@6647d2d]]
([TIME[2015-11-08 15:43:42 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/6647d2de191283e94cec1059411f536e6d6b95b5>
[139] [CITE@en[Separate 'report-only' and 'enforce' CSP execution · whatwg/fetch@a58871a]]
([TIME[2015-11-08 15:50:02 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/a58871a92cbf9304ea4e661f31efb9f2b78bf44b>
[153] [CITE@en[Foreign Fetch - WHATWG Wiki]]
([TIME[2015-07-20 13:04:28 +09:00]] 版)
<https://wiki.whatwg.org/wiki/Foreign_Fetch>
[154] [CITE@en[Fix #176: move a set of steps in HTTP-network fetch · whatwg/fetch@bcf66dd]]
([TIME[2015-12-16 12:20:49 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/bcf66dd5cd98762d4313948c8f3da475b492dbb5>
[155] [CITE@en[Fix #171: main fetch: clarify internal responses and network errors · whatwg/fetch@200e745]]
([TIME[2016-01-09 11:58:00 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/200e745dcba07874a1db25d3ba2be2339a3a0430>
[156] [CITE@en[Introduce HTTP-redirect fetch · whatwg/fetch@3e501f2]]
([TIME[2016-02-06 12:46:40 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/3e501f29eceff41eb81c60fb9937e33e23cf5492>
[157] [CITE@en[Expand Request.destination · whatwg/fetch@6b9cdaa]]
([TIME[2016-02-16 11:15:05 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/6b9cdaa9be7acd2b8074c74823981ef994d17857>
[158] [CITE@en[Clarify main fetch recursive invocation · whatwg/fetch@88fb8d4]]
([TIME[2016-02-19 15:50:14 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/88fb8d48f248396cb9c1876d0f13e682519cffa9>
[160] [CITE@en[Clarify the hooks into RFC6265 · whatwg/fetch@5a324a8]]
([TIME[2016-03-01 11:27:53 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/5a324a891c42d42de09a01e03c3a063b9a4f882b>
** WebSocket 統合
[62] 2016年3月に [[WebSocket]] の接続確立処理が [[Fetch Standard]] に統合されました。
;; [76] これは、従来の [[RFC]] の定義を近年の関連仕様の整備・実装に合わせて改訂することが
[[IETF]] の手続き上困難であること、接続の確立までの部分で他の [[Fetch]]
と共通の処理が多いことが理由とされています。
[164] この統合と同時に、従来 [[WebSocket]] でのみ曖昧に規定されていた [[port blocking]]
が厳密な形で [[Fetch]] 全体に適用されるよう改めて規定されました。
;; [170] [[WebSocket]] のプロトコル全体を [[HTML]] に再統合するべきとの意見もありましたが
[SRC[[[IRC]] #whatwg]]、ひとまずは[[猿パッチ]]という形で先送りされています。
元々 [[HTML5]] の一部だったプロトコル部分が [[IETF]] に移管された後、
[[仕様書]]として技術的に不正確で [[HTML]] との整合性も欠く形に改訂されて [[RFC]]
として出版され、容易に改訂もできない状態になってしまっているとして、
[[WHATWG]] 近辺ではずっと不満が燻っています。
[REFS[
- [165] [CITE@en[Define the WebSocket client handshake in terms of Fetch · whatwg/fetch@ce16adc]] ([TIME[2016-03-11 23:43:03 +09:00]] 版) <https://github.com/whatwg/fetch/commit/ce16adc5c13b56b0f8a6487c71fb030a9bccafce>
- [166] [CITE@en[Fix #238: excellent WebSocket nits · whatwg/fetch@a8392d0]] ([TIME[2016-03-11 23:43:18 +09:00]] 版) <https://github.com/whatwg/fetch/commit/a8392d0933ea7d771ed86acd4734e735eb81e8ac>
- [167] [CITE@en[Fix #240: one more WebSocket nit · whatwg/fetch@f3e1da8]] ([TIME[2016-03-11 23:43:26 +09:00]] 版) <https://github.com/whatwg/fetch/commit/f3e1da80e141cf2c92ba921ed07873ea726cf9a9>
- [168] [CITE@en[Define the WebSocket subprotocol check as part of response validation · whatwg/fetch@08f8560]] ([TIME[2016-03-11 23:43:36 +09:00]] 版) <https://github.com/whatwg/fetch/commit/08f8560f6cecaedc1c3372f9fff1ee39c3bfc86f>
- [161] [CITE@en[Define port blocking · whatwg/fetch@eb07418]]
([TIME[2016-03-11 21:10:53 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/eb07418c8383983a9887498e49a2e2e986d3c9f4>
- [169] [CITE@en[Update WebSocket to use Fetch's WebSocket alterations · whatwg/html@3dadbca]] ([TIME[2016-03-11 23:43:45 +09:00]] 版) <https://github.com/whatwg/html/commit/3dadbcad063a10b586ef52dd4b427aa339048ee7>
]REFS]
[171] [CITE@en-US[Archive]]
([TIME[2016-03-14 19:54:07 +09:00]] 版)
<https://mailarchive.ietf.org/arch/msg/hybi/2OIyLSs5JjDfiFB_I_HGoSinsqc>
[172] [CITE@en[Editorial: remove HSTS reference · whatwg/html@96be6c0]]
([TIME[2016-03-16 14:16:17 +09:00]] 版)
<https://github.com/whatwg/html/commit/96be6c02315d677c48ac334a689a48cbd1929c95>
[173] [CITE@en[Block `image/*` resources loaded as script · whatwg/fetch@b561a73]]
([TIME[2016-03-25 13:43:41 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/b561a73f23b7139d5f4bb0de322dc37e74af0091>
[174] [CITE@en[Editorial: make wait a concept for bodies instead of responses · whatwg/fetch@1873eda]]
([TIME[2016-03-26 11:52:38 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/1873edac285df87c495b1966d8fdb2fd7ba733b2>
[175] [CITE@en[Allow for a request to finish after a response starts to arrive · whatwg/fetch@3a41b6f]]
([TIME[2016-03-26 11:54:15 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/3a41b6f04996d4aac13ecad5b38635827dcd0df3>
[176] [CITE@en[Fix #244: improve HSTS language · whatwg/fetch@6568ab8]]
([TIME[2016-03-27 22:44:50 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/6568ab88c1fbfb581f63f8e5f020c367ef38e78d>
[186] [CITE@en[Update request's referrer policy when fetching · whatwg/fetch@2812f6a]]
([TIME[2016-04-15 22:32:30 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/2812f6aa873968002215b284e05d01715560400b>
[191] [CITE@en[Editorial: use HTML's new WindowOrWorkerGlobalScope mixin · whatwg/fetch@115858e]]
([TIME[2016-04-16 15:26:06 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/115858e1aabab346d03bb93644cd06cd9c2f88ed>
[192] [CITE[''''''[''''''webkit-dev'''''']'''''' Fetch API]]
([TIME[2015-12-11 09:18:16 +09:00]] 版)
<https://lists.webkit.org/pipermail/webkit-dev/2015-December/027838.html>
[193] [CITE@en[Bug 151937 – ''''''[''''''META'''''']'''''' Implement fetch API]]
([TIME[2016-04-21 11:59:13 +09:00]] 版)
<https://bugs.webkit.org/show_bug.cgi?id=151937>
[194] [CITE@en-US[Fetch API - Web APIs | MDN]]
([TIME[2016-03-28 19:17:41 +09:00]] 版)
<https://developer.mozilla.org/en/docs/Web/API/Fetch_API>
[195] [CITE@en[Editorial: remove double-negative in CORS-preflight fetch · whatwg/fetch@f9a540b]]
([TIME[2016-04-24 11:18:28 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/f9a540bd002679bfa238f2fddf5543e7ac9b0d11>
[196] [CITE@en[Rewrite Fetch integration, especially around redirects · w3c/webappsec-referrer-policy@4d227ee]]
([TIME[2016-05-01 13:44:17 +09:00]] 版)
<https://github.com/w3c/webappsec-referrer-policy/commit/4d227ee81961b21913915632614039f076200961>
[197] [CITE@en[Framed navigational requests ought to be upgraded.]]
( ([[mikewest]]著, [TIME[2016-05-11 18:22:43 +09:00]]))
<https://github.com/w3c/webappsec-upgrade-insecure-requests/commit/3af8187ce9f63a2b7a012bc5a6e60e63ef994f93>
[199] [CITE@en[Align with MIX's terminology.]]
( ([[mikewest]]著, [TIME[2016-05-11 18:40:15 +09:00]]))
<https://github.com/w3c/webappsec-upgrade-insecure-requests/commit/0839792b07b7920aefa28cb15935dec423b7cea8>