mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/HTML: Enforce constraints on range inputs
This extends the sanitization algorithm for range inputs in order to prevent overflow, underflow and step mismatch.
This commit is contained in:
committed by
Tim Flynn
parent
57376f8701
commit
aea8650d8b
Notes:
github-actions[bot]
2025-08-14 15:07:02 +00:00
Author: https://github.com/skyz1 Commit: https://github.com/LadybirdBrowser/ladybird/commit/aea8650d8b7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5812 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/trflynn89
@@ -401,6 +401,10 @@ private:
|
||||
bool m_is_open { false };
|
||||
|
||||
void signal_a_type_change();
|
||||
|
||||
bool is_number_underflowing(double number) const;
|
||||
bool is_number_overflowing(double number) const;
|
||||
bool is_number_mismatching_step(double number) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user