mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibWeb+LibURL: Consolidate Origin parsing and serialization into LibURL
Because of the previous awkward factoring of Origin we had two implementations of Origin serializing and creation. Move the implementation of DOMURL::url_origin into URL::origin, and instead use the implemenation of URL::Origin::serialize for serialization (replacing URL::serialize_origin). This happens to fix 8 URL subtests as the two implemenations had diverged, and URL::serialize_origin was previously missing the spec changes of: whatwg/url@eee49fd and whatwg/url@fff33c3
This commit is contained in:
committed by
Andreas Kling
parent
12ea470417
commit
501f92b54e
@@ -50,7 +50,7 @@ String HTMLHyperlinkElementUtils::origin() const
|
||||
return String {};
|
||||
|
||||
// 3. Return the serialization of this element's url's origin.
|
||||
return MUST(String::from_byte_string(m_url->serialize_origin()));
|
||||
return MUST(String::from_byte_string(m_url->origin().serialize()));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/links.html#dom-hyperlink-protocol
|
||||
|
||||
Reference in New Issue
Block a user