mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +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:
parent
9724c67be2
commit
8f6fe1de83
Notes:
github-actions[bot]
2024-11-23 15:44:52 +00:00
Author: https://github.com/shannonbooth
Commit: 8f6fe1de83
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2518
15 changed files with 24 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue