summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/XML
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-04-06 07:25:18 +0200
committerLinus Groh <mail@linusgroh.de>2023-04-06 23:49:08 +0200
commit4d87072201efc4ef9086588255fbb1bb993872ab (patch)
treeeacc0403ddd251ada971e7809d0b530239feb7b3 /Userland/Libraries/LibWeb/XML
parentd6cf9f53297a8fe2e8455b0502cd458cd42ba12d (diff)
downloadserenity-4d87072201efc4ef9086588255fbb1bb993872ab.zip
LibWeb: Port {HTML,UIEvents,XHR}::EventNames to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/XML')
-rw-r--r--Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp
index 4d5d562010..20113eba53 100644
--- a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp
+++ b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp
@@ -189,7 +189,7 @@ void XMLDocumentBuilder::document_end()
document->load_timing_info().dom_content_loaded_event_start_time = HighResolutionTime::unsafe_shared_current_time();
// Fire an event named DOMContentLoaded at the Document object, with its bubbles attribute initialized to true.
- auto content_loaded_event = DOM::Event::create(document->realm(), HTML::EventNames::DOMContentLoaded).release_value_but_fixme_should_propagate_errors();
+ auto content_loaded_event = DOM::Event::create(document->realm(), HTML::EventNames::DOMContentLoaded.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors();
content_loaded_event->set_bubbles(true);
document->dispatch_event(content_loaded_event);
@@ -229,7 +229,7 @@ void XMLDocumentBuilder::document_end()
// Fire an event named load at window, with legacy target override flag set.
// FIXME: The legacy target override flag is currently set by a virtual override of dispatch_event()
// We should reorganize this so that the flag appears explicitly here instead.
- window->dispatch_event(DOM::Event::create(document->realm(), HTML::EventNames::load).release_value_but_fixme_should_propagate_errors());
+ window->dispatch_event(DOM::Event::create(document->realm(), HTML::EventNames::load.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors());
// FIXME: Invoke WebDriver BiDi load complete with the Document's browsing context, and a new WebDriver BiDi navigation status whose id is the Document object's navigation id, status is "complete", and url is the Document object's URL.
@@ -245,7 +245,7 @@ void XMLDocumentBuilder::document_end()
document->set_page_showing(true);
// Fire a page transition event named pageshow at window with false.
- window->fire_a_page_transition_event(HTML::EventNames::pageshow, false);
+ window->fire_a_page_transition_event(HTML::EventNames::pageshow.to_deprecated_fly_string(), false);
// Completely finish loading the Document.
document->completely_finish_loading();