mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 18:27:42 +00:00
LibWeb: Remove unused SessionHistoryEntry::serialized_state
We never implemented this for History::pushState/popState, and now that we're working on the Navigable changes, we don't need this legacy entry with its legacy name.
This commit is contained in:
parent
ca233b5cf4
commit
d3a8ee6e4b
2 changed files with 0 additions and 6 deletions
|
@ -242,7 +242,6 @@ JS::NonnullGCPtr<BrowsingContext> BrowsingContext::create_a_new_browsing_context
|
||||||
auto new_entry = browsing_context->heap().allocate_without_realm<SessionHistoryEntry>();
|
auto new_entry = browsing_context->heap().allocate_without_realm<SessionHistoryEntry>();
|
||||||
new_entry->url = AK::URL("about:blank");
|
new_entry->url = AK::URL("about:blank");
|
||||||
new_entry->document = document.ptr();
|
new_entry->document = document.ptr();
|
||||||
new_entry->serialized_state = {};
|
|
||||||
new_entry->policy_container = {};
|
new_entry->policy_container = {};
|
||||||
new_entry->scroll_restoration_mode = {};
|
new_entry->scroll_restoration_mode = {};
|
||||||
new_entry->browsing_context_name = {};
|
new_entry->browsing_context_name = {};
|
||||||
|
@ -1244,7 +1243,6 @@ WebIDL::ExceptionOr<void> BrowsingContext::navigate_to_a_fragment(AK::URL const&
|
||||||
auto new_entry = heap().allocate_without_realm<SessionHistoryEntry>();
|
auto new_entry = heap().allocate_without_realm<SessionHistoryEntry>();
|
||||||
new_entry->url = url;
|
new_entry->url = url;
|
||||||
new_entry->document = current_entry().document;
|
new_entry->document = current_entry().document;
|
||||||
new_entry->serialized_state = {};
|
|
||||||
new_entry->policy_container = current_entry().policy_container;
|
new_entry->policy_container = current_entry().policy_container;
|
||||||
new_entry->scroll_restoration_mode = current_entry().scroll_restoration_mode;
|
new_entry->scroll_restoration_mode = current_entry().scroll_restoration_mode;
|
||||||
new_entry->browsing_context_name = {};
|
new_entry->browsing_context_name = {};
|
||||||
|
|
|
@ -50,10 +50,6 @@ struct SessionHistoryEntry final : public JS::Cell {
|
||||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-document-state
|
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-document-state
|
||||||
JS::GCPtr<HTML::DocumentState> document_state;
|
JS::GCPtr<HTML::DocumentState> document_state;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-serialized-state
|
|
||||||
// serialized state, which is serialized state, initially StructuredSerializeForStorage(null).
|
|
||||||
Optional<DeprecatedString> serialized_state;
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-scroll-restoration-mode
|
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-scroll-restoration-mode
|
||||||
// scroll restoration mode, a scroll restoration mode, initially "auto"
|
// scroll restoration mode, a scroll restoration mode, initially "auto"
|
||||||
ScrollRestorationMode scroll_restoration_mode { ScrollRestorationMode::Auto };
|
ScrollRestorationMode scroll_restoration_mode { ScrollRestorationMode::Auto };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue