mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibURL: Implement Site concept
This commit is contained in:
parent
2e64e0b836
commit
b83f015c70
Notes:
github-actions[bot]
2024-11-30 11:23:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: b83f015c70
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2610
Reviewed-by: https://github.com/shannonbooth ✅
6 changed files with 146 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <LibURL/Forward.h>
|
||||
#include <LibURL/Host.h>
|
||||
|
||||
namespace URL {
|
||||
|
@ -74,6 +75,9 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#same-site
|
||||
bool is_same_site(Origin const&) const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin
|
||||
String serialize() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue