Postmortem states should not return errors until after user action.

Three error states (timeout, keyNotRegistered, and keyAlreadyRegistered)
were previously considered 'postmortem' states. This meant that dialogs
corresponding to these states would be shown after a request was finished
and after a DOMException was sent to the RP.

This CL changes those states to instead block resolution of the request
until the user acknowledges the dialog, and then close the request.

Reworded 'postmortem' references to 'awaiting user acknowledgement'
to better reflect this behavior.

Bug: 897757
Change-Id: I04330f5a87ebbc960cd4c1e8d2c1b65fe97d9cd9
Reviewed-on: https://chromium-review.googlesource.com/c/1428879
Commit-Queue: Kim Paulhamus <kpaulhamus@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/master@{#629782}
13 files changed