diff --git a/web/password_prompt.js b/web/password_prompt.js index 4bd630e24..d2d1e2070 100644 --- a/web/password_prompt.js +++ b/web/password_prompt.js @@ -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)); }, diff --git a/web/viewer.html b/web/viewer.html index e5fb76293..fc8d2f70a 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -331,7 +331,8 @@ See https://github.com/adobe-type-tools/cmap-resources

Enter the password to open this PDF file:

- + +