mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibWeb: Determine the origin when navigating across documents
This commit is contained in:
parent
9643a5c63f
commit
8d2c2f7c52
4 changed files with 14 additions and 4 deletions
|
@ -216,7 +216,7 @@ NonnullRefPtr<Document> Document::create_and_initialize(Type type, String conten
|
|||
// 8. Let document be a new Document,
|
||||
// whose type is type,
|
||||
// content type is contentType,
|
||||
// FIXME: origin is navigationParams's origin,
|
||||
// origin is navigationParams's origin,
|
||||
// FIXME: policy container is navigationParams's policy container,
|
||||
// FIXME: permissions policy is permissionsPolicy,
|
||||
// FIXME: active sandboxing flag set is navigationParams's final sandboxing flag set,
|
||||
|
@ -226,6 +226,7 @@ NonnullRefPtr<Document> Document::create_and_initialize(Type type, String conten
|
|||
auto document = Document::create();
|
||||
document->m_type = type;
|
||||
document->m_content_type = content_type;
|
||||
document->set_origin(navigation_params.origin);
|
||||
|
||||
document->m_window = window;
|
||||
window->set_associated_document(*document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue