mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/HTML: Implement the Origin interface
See: https://github.com/whatwg/html/commit/68909b2
This commit is contained in:
committed by
Jelle Raaijmakers
parent
2c11e03582
commit
f9a996650b
Notes:
github-actions[bot]
2025-12-30 11:41:25 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/f9a996650b9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7047 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/trflynn89
@@ -482,4 +482,11 @@ Optional<URL::URL> parse(StringView input, Optional<URL::URL const&> base_url, O
|
||||
return url.release_value();
|
||||
}
|
||||
|
||||
// FIXME: At time of writing, still open spec MR: https://github.com/whatwg/url/pull/892
|
||||
Optional<URL::Origin> DOMURL::extract_an_origin() const
|
||||
{
|
||||
// Objects implementing the URL interface's extract an origin steps are to return this's URL's origin. [[HTML]]
|
||||
return m_url.origin();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user