mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb+LibURL: Move HTML::Origin to URL::Origin
While Origin is defined in the HTML spec - this leaves us with quite an awkward relationship as the URL spec makes use of AO's from what is defined in the HTML spec. To simplify this factoring, relocate Origin into LibURL.
This commit is contained in:
parent
e9dd05b2b5
commit
dc401f49ea
Notes:
github-actions[bot]
2024-10-05 08:47:56 +00:00
Author: https://github.com/shannonbooth
Commit: dc401f49ea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1636
55 changed files with 143 additions and 157 deletions
|
@ -9,12 +9,12 @@
|
|||
#include <AK/Optional.h>
|
||||
#include <LibJS/Heap/CellAllocator.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibURL/Origin.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Requests.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Responses.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/OpenerPolicy.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/OpenerPolicyEnforcementResult.h>
|
||||
#include <LibWeb/HTML/Origin.h>
|
||||
#include <LibWeb/HTML/PolicyContainers.h>
|
||||
#include <LibWeb/HTML/SandboxingFlagSet.h>
|
||||
|
||||
|
@ -50,7 +50,7 @@ struct NavigationParams : JS::Cell {
|
|||
Fetch::Infrastructure::Request::ReservedClientType reserved_environment;
|
||||
|
||||
// an origin to use for the new Document
|
||||
Origin origin;
|
||||
URL::Origin origin;
|
||||
|
||||
// a policy container to use for the new Document
|
||||
PolicyContainer policy_container;
|
||||
|
@ -90,7 +90,7 @@ struct NonFetchSchemeNavigationParams : JS::Cell {
|
|||
bool source_snapshot_has_transient_activation = { false };
|
||||
|
||||
// an origin possibly for use in a user-facing prompt to confirm the invocation of an external software package
|
||||
Origin initiator_origin;
|
||||
URL::Origin initiator_origin;
|
||||
|
||||
// FIXME: a NavigationTimingType used for creating the navigation timing entry for the new Document
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue