LibWeb: Use document from DocumentState in navigation

New navigables spec assumes that document pointer is located in
DocumentState instead of SessionHistoryEntry like it was in the
old navigation spec.
This commit is contained in:
Aliaksandr Kalenik 2023-01-01 18:25:01 +01:00 committed by Andreas Kling
parent ee50d9b2b5
commit ce9af96f78
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00
2 changed files with 18 additions and 18 deletions

View file

@ -43,13 +43,10 @@ struct SessionHistoryEntry final : public JS::Cell {
// step, a non-negative integer or "pending", initially "pending".
Variant<int, Pending> step { Pending::Tag };
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-url
// URL, a URL
AK::URL url;
// document, a Document or null
// FIXME: this property is not present in the spec anymore and should be gone after introducing navigables
JS::GCPtr<DOM::Document> document;
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-document-state
JS::GCPtr<HTML::DocumentState> document_state;