Bring http_network_or_cache_fetch closer to the spec (#33531)

* Document "fetch" method

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Bring http_network_or_cache_fetch closer to the spec

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* fix test-tidy errors

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Move all code into http_loader.rs

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Don't panic if hyper/servo disagree about valid origins

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Add "otherwise" to spec comment

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Convert FIXME's to TODOs when appropriate

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Remove TODO about No-Store cache directive

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Remove indentation from multiline spec comments

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Add fetch assertions

This is from a spec update where assertions
about requests origin not being client
were added.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Add note about serializing headers

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Add TODO about partitioning http cache

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Convert FIXME to TODO in script/

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Link to relevant issue for TODO comments

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-10-08 07:36:46 +02:00 committed by GitHub
parent fc0d4d8157
commit 457d8a8a5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 320 additions and 188 deletions

View file

@ -1,13 +1,4 @@
[assorted.window.html]
[Origin header and 308 redirect]
expected: FAIL
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy no-referrer]
expected: FAIL
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy no-referrer]
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy origin-when-cross-origin]
expected: FAIL
@ -17,17 +8,8 @@
[Origin header and POST navigation]
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy no-referrer]
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy same-origin]
expected: FAIL
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy same-origin]
expected: FAIL
[Origin header and POST same-origin navigation with Referrer-Policy no-referrer]
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy no-referrer-when-downgrade]
expected: FAIL