mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibURL+LibWeb: Make URL::Origin default constructor private
Instead, porting over all users to use the newly created Origin::create_opaque factory function. This also requires porting over some users of Origin to avoid default construction.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
5deb8ba2f8
commit
e0d7278820
Notes:
github-actions[bot]
2025-06-17 18:55:18 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/e0d72788207 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5094 Reviewed-by: https://github.com/gmta ✅
@@ -24,7 +24,7 @@ GC::Ref<DOM::Document> create_document_for_inline_content(GC::Ptr<HTML::Navigabl
|
||||
VERIFY(navigable->active_document());
|
||||
|
||||
// 1. Let origin be a new opaque origin.
|
||||
URL::Origin origin {};
|
||||
auto origin = URL::Origin::create_opaque();
|
||||
|
||||
// 2. Let coop be a new opener policy.
|
||||
auto coop = HTML::OpenerPolicy {};
|
||||
|
||||
Reference in New Issue
Block a user