mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +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
@@ -449,7 +449,7 @@ void EventSource::dispatch_the_event()
|
||||
// the value of the event type buffer.
|
||||
MessageEventInit init {};
|
||||
init.data = JS::PrimitiveString::create(vm(), data_buffer);
|
||||
init.origin = MUST(String::from_byte_string(m_url.origin().serialize()));
|
||||
init.origin = m_url.origin().serialize();
|
||||
init.last_event_id = last_event_id;
|
||||
|
||||
auto type = m_event_type.is_empty() ? HTML::EventNames::message : m_event_type;
|
||||
|
||||
Reference in New Issue
Block a user