Files
tubestation/editor/reftests/passwd-6-with-Preview.html
Masayuki Nakano a6fbd786d9 Bug 1548389 - part 5: Make nsTextFrame and related code treat masking password characters as text-transform r=jfkthame
Anonymous text node in password field has `NS_MAYBE_MASKED` flag and
`TextEditor` managing the node has range of unmasking.  This patch makes
`BuildTextRunsScanner::BuildTextRunForFrames()` treat text frame in
password field as `text-transform` applied.  For recording the unmask range,
this patch creates `nsTransformedCharStyle::mMaskPassword` and treats unmask
range start/end edges as different style boundary.  Therefore,
`nsCaseTransformTextRunFactory::TransformString()` can replace each character
with a password mask character with the information.

Note that we need to kill bidi algorithm in password fields with forms.css
because caret position will tell everybody whether the typing character is
an RTL or an LTR character.

Differential Revision: https://phabricator.services.mozilla.com/D38009
2019-07-22 03:54:50 +00:00

11 lines
368 B
HTML

<!DOCTYPE html>
<html>
<body>
<input type="password" value="&#x1f914;&#x1f9b8;&#x1f3fd;&#x200D;&#x2640;&#xfe0f;&#x8fba;&#xe0101;&#x915;&#x94d;&zwj;"
><!-- Simple Emoji (a surrogate pair in UTF-16),
Complicate Emoji (Woman Superhero: Medium Skin Tone),
Kanji with IVS,
2 devanāgarī characters followed by ZWJ -->
</body>
</html>