[Webkit-unassigned] [Bug 248717] AX: Don't include password input value in aria-labelledby description
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 7 06:23:24 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248717
--- Comment #11 from Andres Gonzalez <andresg_22 at apple.com> ---
(In reply to Tommy McHugh from comment #9)
> Created attachment 463911 [details]
> Patch
--- a/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
+++ b/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
Can we do a char replacement in place, something like:
+ if (auto* input = dynamicDowncast<HTMLInputElement>(element)) {
+ String inputValue = input->value();
+ if (input->isPasswordField()) {
+ for (size_t i = 0; i < inputValue.length(); i++)
+ inputValue[i] = '•';
+ }
+ return inputValue;
+ }
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221207/a88adb36/attachment.htm>
More information about the webkit-unassigned
mailing list