Commit c5eacacb authored by Adam Langley's avatar Adam Langley Committed by Commit Bot

webui: fix announcing security keys PIN dialog errors.

r684202 set the wrong object member. (This fix is equally untested
because I have to wait for Canary in order to try it.)

BUG=990992

Change-Id: I140d081e53f2d10070a35cff8af312db7f3c77d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739395
Commit-Queue: Adam Langley <agl@chromium.org>
Commit-Queue: Hector Carmona <hcarmona@chromium.org>
Auto-Submit: Adam Langley <agl@chromium.org>
Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684416}
parent 201cbc68
...@@ -339,7 +339,7 @@ Polymer({ ...@@ -339,7 +339,7 @@ Polymer({
this.currentPINError_ = this.isValidPIN_(this.currentPIN_); this.currentPINError_ = this.isValidPIN_(this.currentPIN_);
if (this.currentPINError_ != '') { if (this.currentPINError_ != '') {
this.focusOn_(this.$.currentPIN); this.focusOn_(this.$.currentPIN);
this.fire('iron-announce', {message: this.currentPINError_}); this.fire('iron-announce', {text: this.currentPINError_});
this.fire('ui-ready'); // for test synchronization. this.fire('ui-ready'); // for test synchronization.
return; return;
} }
...@@ -348,7 +348,7 @@ Polymer({ ...@@ -348,7 +348,7 @@ Polymer({
this.newPINError_ = this.isValidPIN_(this.newPIN_); this.newPINError_ = this.isValidPIN_(this.newPIN_);
if (this.newPINError_ != '') { if (this.newPINError_ != '') {
this.focusOn_(this.$.newPIN); this.focusOn_(this.$.newPIN);
this.fire('iron-announce', {message: this.newPINError_}); this.fire('iron-announce', {text: this.newPINError_});
this.fire('ui-ready'); // for test synchronization. this.fire('ui-ready'); // for test synchronization.
return; return;
} }
...@@ -356,7 +356,7 @@ Polymer({ ...@@ -356,7 +356,7 @@ Polymer({
if (this.newPIN_ != this.confirmPIN_) { if (this.newPIN_ != this.confirmPIN_) {
this.confirmPINError_ = this.i18n('securityKeysPINMismatch'); this.confirmPINError_ = this.i18n('securityKeysPINMismatch');
this.focusOn_(this.$.confirmPIN); this.focusOn_(this.$.confirmPIN);
this.fire('iron-announce', {message: this.confirmPINError_}); this.fire('iron-announce', {text: this.confirmPINError_});
this.fire('ui-ready'); // for test synchronization. this.fire('ui-ready'); // for test synchronization.
return; return;
} }
...@@ -381,7 +381,7 @@ Polymer({ ...@@ -381,7 +381,7 @@ Polymer({
this.currentPINError_ = this.mismatchError_(this.retries_); this.currentPINError_ = this.mismatchError_(this.retries_);
this.setPINButtonValid_ = true; this.setPINButtonValid_ = true;
this.focusOn_(this.$.currentPIN); this.focusOn_(this.$.currentPIN);
this.fire('iron-announce', {message: this.currentPINError_}); this.fire('iron-announce', {text: this.currentPINError_});
this.fire('ui-ready'); // for test synchronization. this.fire('ui-ready'); // for test synchronization.
} else { } else {
// Unknown error. // Unknown error.
......
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