mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
ffbb14909f
It does not make sense to copy masked password with mask characters. Therefore, we should allow users to copy/cut in password fields only when selected range is in unmasked range. Note that for web-compat, copy/cut are always enabled in HTML/XHTML document in content. Therefore this patch changes the behavior only in chrome's password fields. Additionally, only the test uses `nsIEditor.canDelete()`. Therefore, this removes it and make the test use `nsIDocShell.isCommandEnabled()` instead. Unfortunately, `nsIEditor.canCopy()` and `nsIEditor.canCut()` are used by BlueGriffon, therefore, we cannot get rid of them for now. Differential Revision: https://phabricator.services.mozilla.com/D38999 --HG-- rename : editor/libeditor/tests/test_bug1067255.html => editor/libeditor/tests/test_cut_copy_delete_command_enabled.html extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
content | ||
api.js | ||
Makefile.in | ||
manifest.json | ||
moz.build | ||
schema.json |