LibWeb: Support appending files to <input type=file>

This isn't exposed to the Web, but WebDriver requires this feature.
This commit is contained in:
Timothy Flynn
2024-10-10 20:10:37 -04:00
committed by Andreas Kling
parent 0dec2dc21c
commit 63b24e38fa
2 changed files with 16 additions and 4 deletions

View File

@@ -105,7 +105,11 @@ public:
void did_pick_color(Optional<Color> picked_color, ColorPickerUpdateState state);
void did_select_files(Span<SelectedFile> selected_files);
enum class MultipleHandling {
Replace,
Append,
};
void did_select_files(Span<SelectedFile> selected_files, MultipleHandling = MultipleHandling::Replace);
JS::GCPtr<FileAPI::FileList> files();
void set_files(JS::GCPtr<FileAPI::FileList>);