Commit 4e60ee9
web_shell_override: mask password prompts with CSS, never input.type=password
Mirrors fluffos/fluffos@eaa1a6ee into this repo's copy (pack_lib_for_web.sh
prefers it over the release zip's own index.html at publish time).
Reported live: iOS Safari kept showing its AutoFill quick-suggestion bar
(passwords/cards/contacts icons) above the keyboard even during ordinary
command typing, well after any password prompt had passed. Root cause:
the command input toggled between type="text" and type="password" on
the SAME persistent <input> element, and WebKit's AutoFill heuristic
sticks to an element as a credential field for the rest of the page's
life once it's ever been type="password", regardless of the type
reverting afterward.
Replaced the type toggle with a `.masked` CSS class applying
-webkit-text-security:disc (WebKit/Blink; not Firefox, but that only
affects legibility, never functionality, and iOS/Chrome cover the
overwhelming majority of mobile traffic here) -- input.type never
changes from "text" now. Verified against a real packed site (rzrmud):
type stays "text" through the toggle, the computed style applies/clears
correctly, and a masked field visibly renders bullet dots.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VyQCUoTo1Z93Py9aVFHQi11 parent c7cfadd commit 4e60ee9
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
188 | 201 | | |
189 | 202 | | |
190 | 203 | | |
| |||
833 | 846 | | |
834 | 847 | | |
835 | 848 | | |
836 | | - | |
| 849 | + | |
| 850 | + | |
837 | 851 | | |
838 | 852 | | |
839 | 853 | | |
| |||
898 | 912 | | |
899 | 913 | | |
900 | 914 | | |
901 | | - | |
| 915 | + | |
902 | 916 | | |
903 | 917 | | |
904 | 918 | | |
| |||
1007 | 1021 | | |
1008 | 1022 | | |
1009 | 1023 | | |
1010 | | - | |
| 1024 | + | |
1011 | 1025 | | |
1012 | 1026 | | |
1013 | 1027 | | |
| |||
0 commit comments