mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Limit HTMLImageElement width and height to allowed values
Setting the `width` or `height` properties of `HTMLImageElement` to a value greater than 2147483647 will now cause the property to be set to 0.
This commit is contained in:
committed by
Tim Ledbetter
parent
c94b4316e7
commit
b05bc71002
Notes:
github-actions[bot]
2024-12-01 15:13:03 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b05bc710023 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2641
@@ -52,11 +52,11 @@ public:
|
||||
|
||||
RefPtr<Gfx::ImmutableBitmap> immutable_bitmap() const;
|
||||
|
||||
unsigned width() const;
|
||||
WebIDL::ExceptionOr<void> set_width(unsigned);
|
||||
WebIDL::UnsignedLong width() const;
|
||||
WebIDL::ExceptionOr<void> set_width(WebIDL::UnsignedLong);
|
||||
|
||||
unsigned height() const;
|
||||
WebIDL::ExceptionOr<void> set_height(unsigned);
|
||||
WebIDL::UnsignedLong height() const;
|
||||
WebIDL::ExceptionOr<void> set_height(WebIDL::UnsignedLong);
|
||||
|
||||
unsigned natural_width() const;
|
||||
unsigned natural_height() const;
|
||||
|
||||
Reference in New Issue
Block a user