Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d4b9815496c21d580ff01a980fc40662dfddfba3
https://github.com/WebKit/WebKit/commit/d4b9815496c21d580ff01a980fc40662dfddfba3
Author: Chris Dumez <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
M Source/WebCore/html/InputType.cpp
Log Message:
-----------
Address unsafe cast warning in InputType.cpp
https://bugs.webkit.org/show_bug.cgi?id=306011
Reviewed by Ryosuke Niwa.
Move the cast to the call site where it is clear we've just checked the
type and switch to uncheckedDowncast<>() so the type get revalidated
in debug builds at least.
* Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations:
* Source/WebCore/html/InputType.cpp:
(WebCore::isInvalidInputType):
(WebCore::InputType::isInvalid const):
Canonical link: https://commits.webkit.org/306042@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications