Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7ba3fe7698d306bf361b4a988dcc33b124549a65
      
https://github.com/WebKit/WebKit/commit/7ba3fe7698d306bf361b4a988dcc33b124549a65
  Author: Aditya Keerthi <[email protected]>
  Date:   2026-10-12 (Mon, 12 Oct 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ios/KeyboardInputTestsIOS.mm

  Log Message:
  -----------
  [iOS] "Show password" functionality on many sites disables the 
`secureTextEntry` trait
https://bugs.webkit.org/show_bug.cgi?id=327302
rdar://189847700

Reviewed by Abrar Rahman Protyasha and Lily Spiniolas.

Sites often implement "show password" functionality by changing the input type
to "text". This disables the `secureTextEntry` trait. However, the
`secureTextEntry` trait should be preserved, since the field is still 
semantically
a password field.

* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _updateTextInputTraits:]):

Set `secureTextEntry` if the field was ever a password field.

* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ios/KeyboardInputTestsIOS.mm:
(TestWebKitAPI::TEST(KeyboardInputTests, 
SecureTextEntryAfterChangingInputTypeFromPassword)):

Canonical link: https://commits.webkit.org/323538@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to