mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Limit HTMLInputElement.size to allowed values
Attempting to set `HTMLInputElement.size` to 0 via IDL now throws an IndexSizeError DOMException. Attempting to set it to a value larger than 2147483647 results in it being set to the default value.
This commit is contained in:
committed by
Andreas Kling
parent
08812a1f88
commit
ae0c87c747
Notes:
github-actions[bot]
2024-11-29 08:50:16 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ae0c87c7476 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2619 Reviewed-by: https://github.com/stelar7
@@ -125,8 +125,8 @@ public:
|
||||
WebIDL::Long min_length() const;
|
||||
WebIDL::ExceptionOr<void> set_min_length(WebIDL::Long);
|
||||
|
||||
unsigned size() const;
|
||||
WebIDL::ExceptionOr<void> set_size(unsigned value);
|
||||
WebIDL::UnsignedLong size() const;
|
||||
WebIDL::ExceptionOr<void> set_size(WebIDL::UnsignedLong value);
|
||||
|
||||
struct SelectedCoordinate {
|
||||
int x { 0 };
|
||||
|
||||
Reference in New Issue
Block a user