mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:55:07 +00:00
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:
parent
ee50d9b2b5
commit
ce9af96f78
2 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue