Set type="password" for the PasswordPrompt
input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898)
Fixes 6898. Note that this doesn't prevent the warning for PDF files that *do* ask for a password, e.g. http://async5.org/moz/passwordOU.pdf, but it's not clear to me if/how we could avoid that.
This commit is contained in:
parent
1eea0db897
commit
4b94416277
2 changed files with 4 additions and 1 deletions
|
@ -49,6 +49,7 @@ var PasswordPrompt = {
|
|||
|
||||
open: function passwordPromptOpen() {
|
||||
OverlayManager.open(this.overlayName).then(function () {
|
||||
this.passwordField.type = 'password';
|
||||
this.passwordField.focus();
|
||||
|
||||
var promptString = mozL10n.get('password_label', null,
|
||||
|
@ -66,6 +67,7 @@ var PasswordPrompt = {
|
|||
close: function passwordPromptClose() {
|
||||
OverlayManager.close(this.overlayName).then(function () {
|
||||
this.passwordField.value = '';
|
||||
this.passwordField.type = '';
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue