mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Make document origin opaque by default
This aligns our behavior with the specification, which says the default value for a Document's origin is opaque unless otherwise specified
This commit is contained in:
parent
b3fa54a791
commit
d7deb6d58f
Notes:
github-actions[bot]
2025-07-06 01:41:03 +00:00
Author: https://github.com/tcl3
Commit: d7deb6d58f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5304
Reviewed-by: https://github.com/shannonbooth ✅
2 changed files with 2 additions and 2 deletions
|
@ -850,7 +850,7 @@ GC::Ptr<HTML::WindowProxy const> Document::default_view() const
|
||||||
|
|
||||||
URL::Origin const& Document::origin() const
|
URL::Origin const& Document::origin() const
|
||||||
{
|
{
|
||||||
return m_origin.value();
|
return m_origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Document::set_origin(URL::Origin const& origin)
|
void Document::set_origin(URL::Origin const& origin)
|
||||||
|
|
|
@ -1088,7 +1088,7 @@ private:
|
||||||
String m_referrer;
|
String m_referrer;
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#concept-document-origin
|
// https://dom.spec.whatwg.org/#concept-document-origin
|
||||||
Optional<URL::Origin> m_origin;
|
URL::Origin m_origin { URL::Origin::create_opaque() };
|
||||||
|
|
||||||
GC::Ptr<HTMLCollection> m_applets;
|
GC::Ptr<HTMLCollection> m_applets;
|
||||||
GC::Ptr<HTMLCollection> m_anchors;
|
GC::Ptr<HTMLCollection> m_anchors;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue