Fix opening file sharing compose dialog sets the password field automatically in Safari

This commit is contained in:
Hadi Nategh 2017-07-04 13:24:38 +02:00
parent 5cd3569f67
commit 32b07bd12e

View File

@ -218,6 +218,13 @@ app.classes.mail = AppJS.extend(
);
break;
case 'mail.compose':
// Set password field of file sharing to empty in
// initialization because safari does not respect
// autocomplete-off attribute. This hack should be
// removed once the issue is solved.
var password = this.et2.getWidgetById('password');
if (password) password.set_value('');
if (this.et2.getWidgetById('composeToolbar')._actionManager.getActionById('pgp') &&
this.et2.getWidgetById('composeToolbar')._actionManager.getActionById('pgp').checked ||
this.et2.getArrayMgr('content').data.mail_plaintext &&