mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Remove the password prompt input type hack
The browsers have become smarter and made this hack no longer functional. Since this is now enforced by practically all browsers, there is nothing more we can do about this. It is up to the user to serve the viewer over HTTPS or deal with the warning. Note that this is in no way specific for PDF.js. Any site with password inputs served over HTTP has this problem right now. This hack was provided as a convenience for the users, but nothing more than that.
This commit is contained in:
parent
e3796f6f41
commit
dfd338a399
2 changed files with 1 additions and 4 deletions
|
@ -60,7 +60,6 @@ class PasswordPrompt {
|
|||
|
||||
open() {
|
||||
OverlayManager.open(this.overlayName).then(() => {
|
||||
this.input.type = 'password';
|
||||
this.input.focus();
|
||||
|
||||
var promptString = mozL10n.get('password_label', null,
|
||||
|
@ -78,7 +77,6 @@ class PasswordPrompt {
|
|||
close() {
|
||||
OverlayManager.close(this.overlayName).then(() => {
|
||||
this.input.value = '';
|
||||
this.input.type = '';
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue