summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/DocumentLoading.h
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-04-06 18:10:12 +0300
committerAndreas Kling <kling@serenityos.org>2023-05-03 09:39:49 +0200
commitde2c0165560d44d3711ad6b2c42ce37060a819b4 (patch)
treed50c62de2e51e75bba8a4c98f464b8a7231fd370 /Userland/Libraries/LibWeb/DOM/DocumentLoading.h
parent804af38a96668d8e7dd60f5567fb6a11a6be8aeb (diff)
downloadserenity-de2c0165560d44d3711ad6b2c42ce37060a819b4.zip
LibWeb: Implement "attempt to populate the history entry's document"
Implements: https://html.spec.whatwg.org/multipage/browsing-the-web.html#attempt-to-populate-the-history-entry's-document This is going to be a replacement for `FrameLoader::load()` after switching to navigables. Brief description of `populate_session_history_entry_document`: - If navigation params have url with fetch scheme then DOM document will be populated by fetching url and parsing response. This is going to be a replacement for `FrameLoader::load(AK::URL&)`. - If url in navigation params is abort:srcdoc then DOM document will be populated by parsing HTML text passed in document resource. This is going to be a replacement for `FrameLoader::load_html()`
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/DocumentLoading.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/DocumentLoading.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/DocumentLoading.h b/Userland/Libraries/LibWeb/DOM/DocumentLoading.h
index 0b330e1458..aa87db2a21 100644
--- a/Userland/Libraries/LibWeb/DOM/DocumentLoading.h
+++ b/Userland/Libraries/LibWeb/DOM/DocumentLoading.h
@@ -12,5 +12,7 @@
namespace Web {
bool parse_document(DOM::Document& document, ByteBuffer const& data);
+JS::GCPtr<DOM::Document> load_document(Optional<HTML::NavigationParams> navigation_params);
+JS::GCPtr<DOM::Document> create_document_for_inline_content(JS::GCPtr<HTML::Navigable> navigable, Optional<String> navigation_id, StringView content_html);
}