mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

Unmasking is an optional style of showing password. Therefore, if callers of `nsIEditor::Unmask()` specify middle of surrogate pair(s), it may mean that they want to expand the unmask range from shorter range which does not include the high and/or low surrogate. Therefore, one of the surrogates is in unmasked range, we unmask the surrogate pair. However, we handle this in a lot of places, i..e., we have duplicated code. This can get rid of these duplicates with making `nsIEditor::Unmask()` expand the range automatically. Differential Revision: https://phabricator.services.mozilla.com/D38432 --HG-- extra : moz-landing-system : lando