DescriptionWebCrypto: Refactor the WebCryptoOperation interface to support errors.
This allows the embedder to:
(1) Throw an error during initialization of the CryptoOperation (which will result in throwing an exception to Javascript)
(2) Terminate the CryptoOperation with an error at any point after successful initialization. This error will be delivered via the Promise's reject handler.
The previous interface only allowed completing with an error during finish(), so any errors encountered during process() would have to be buffered until the end.
BUG=245025
R=abarth@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154563
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : Fix assertion #Patch Set 5 : Rebase onto master #
Messages
Total messages: 6 (0 generated)
|