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
commit 63b24e38fa
Notes: github-actions[bot] 2024-10-11 07:10:23 +00:00
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>);