mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01: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
|
|
@ -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…
Reference in New Issue
Block a user