Commit 566f705f authored by dpapad's avatar dpapad Committed by Commit Bot

PDF Viewer: Fix regression causing password prompt to not show up.

Fixed: 1102943
Change-Id: Ic44bf23de891295106fa73092c14f9a17672fd16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2285383
Commit-Queue: dpapad <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786100}
parent 8bb71e6e
......@@ -762,7 +762,7 @@ class PDFViewerElement extends PDFViewerBaseElement {
// responding to an incorrect password so deny it.
const passwordScreen = this.$$('#password-screen');
assert(passwordScreen);
if (passwordScreen.active) {
if (!passwordScreen.active) {
this.hadPassword_ = true;
passwordScreen.show();
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment