mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibURL+LibWeb: Make URL serialization return a String
This can only ever fail from OOM, and will never by string containing random byte sequences.
This commit is contained in:
committed by
Andreas Kling
parent
9724c67be2
commit
8f6fe1de83
@@ -52,7 +52,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->origin().serialize()));
|
||||
return m_url->origin().serialize();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/links.html#dom-hyperlink-protocol
|
||||
|
||||
Reference in New Issue
Block a user