mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00: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:
parent
08812a1f88
commit
ae0c87c747
Notes:
github-actions[bot]
2024-11-29 08:50:16 +00:00
Author: https://github.com/tcl3
Commit: ae0c87c747
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2619
Reviewed-by: https://github.com/stelar7
4 changed files with 26 additions and 5 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue