LibWeb: Handle Refresh header
Fixes a bunch of tests in: - https://staging.wpt.fyi/results/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh
This commit is contained in:
parent
6762714f5e
commit
cbe4ba7f8c
Notes:
github-actions[bot]
2024-10-04 18:03:28 +00:00
Author: https://github.com/EdwinHoksberg Commit: https://github.com/LadybirdBrowser/ladybird/commit/cbe4ba7f8c8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1628
1 changed files with 8 additions and 1 deletions
|
@ -339,7 +339,14 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> Document::create_and_initialize(
|
|||
// FIXME: 15. Create the navigation timing entry for document, with navigationParams's response's timing info, redirectCount, navigationParams's navigation timing type, and
|
||||
// navigationParams's response's service worker timing info.
|
||||
|
||||
// FIXME: 16. If navigationParams's response has a `Refresh` header, then:
|
||||
// 16. If navigationParams's response has a `Refresh` header, then:
|
||||
if (auto maybe_refresh = navigation_params.response->header_list()->get("Refresh"sv.bytes()); maybe_refresh.has_value()) {
|
||||
// 1. Let value be the isomorphic decoding of the value of the header.
|
||||
auto const& value = maybe_refresh.value();
|
||||
|
||||
// 2. Run the shared declarative refresh steps with document and value.
|
||||
document->shared_declarative_refresh_steps(value, nullptr);
|
||||
}
|
||||
|
||||
// FIXME: 17. If navigationParams's commit early hints is not null, then call navigationParams's commit early hints with document.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue