gecko-dev/testing/specialpowers
Masayuki Nakano ffbb14909f Bug 1560032 - part 1: Make TextEditor for password allow to copy password when selected range is in unmasked range r=m_kato
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
2019-07-29 06:21:14 +00:00
..
content Bug 1560032 - part 1: Make TextEditor for password allow to copy password when selected range is in unmasked range r=m_kato 2019-07-29 06:21:14 +00:00
api.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
Makefile.in Bug 1497339 - Fix reftests in the Tup backend. r=ted,firefox-build-system-reviewers 2018-10-10 23:12:32 +00:00
manifest.json Bug 1451519 Convert specialpowers to a webextension r=kmag 2018-06-27 13:10:51 -07:00
moz.build Bug 1561150: Support test assertions in SpecialPowers.spawn sandboxes. r=nika 2019-06-24 19:25:33 -07:00
schema.json Bug 1451519 Convert specialpowers to a webextension r=kmag 2018-06-27 13:10:51 -07:00