mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 16:14:23 +00:00
LibWeb: Make factory method of FileAPI::FileList fallible
This commit is contained in:
committed by
Linus Groh
parent
15917146d3
commit
6688f89ad3
@@ -110,7 +110,7 @@ JS::GCPtr<FileAPI::FileList> HTMLInputElement::files()
|
||||
return nullptr;
|
||||
|
||||
if (!m_selected_files)
|
||||
m_selected_files = FileAPI::FileList::create(realm(), {});
|
||||
m_selected_files = FileAPI::FileList::create(realm(), {}).release_value_but_fixme_should_propagate_errors();
|
||||
return m_selected_files;
|
||||
}
|
||||
|
||||
@@ -756,7 +756,7 @@ void HTMLInputElement::reset_algorithm()
|
||||
m_checked = has_attribute(AttributeNames::checked);
|
||||
|
||||
// empty the list of selected files,
|
||||
m_selected_files = FileAPI::FileList::create(realm(), {});
|
||||
m_selected_files = FileAPI::FileList::create(realm(), {}).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
// and then invoke the value sanitization algorithm, if the type attribute's current state defines one.
|
||||
m_value = value_sanitization_algorithm(m_value);
|
||||
|
||||
Reference in New Issue
Block a user