mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
5febecd19b
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 --HG-- extra : moz-landing-system : lando
11 lines
368 B
HTML
11 lines
368 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<input type="password" value="🤔🦸🏽‍♀️辺󠄁क्‍"
|
|
><!-- 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>
|