Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1685)

Unified Diff: Source/modules/crypto/CryptoResultImpl.cpp

Issue 258203003: [webcrypto] Define the DOMException OperationError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, just in case... Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ExceptionCode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/CryptoResultImpl.cpp
diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp
index 13ba840dea5239b1379282550fc7492c5ce111ca..53c45fb1e3d5ca3ed0b258e98b705f5e3454baa2 100644
--- a/Source/modules/crypto/CryptoResultImpl.cpp
+++ b/Source/modules/crypto/CryptoResultImpl.cpp
@@ -65,9 +65,7 @@ ExceptionCode toExceptionCode(blink::WebCryptoErrorType errorType)
case blink::WebCryptoErrorTypeData:
return DataError;
case blink::WebCryptoErrorTypeOperation:
- // FIXME: This exception type is new to WebCrypto and not yet defined.
- // Use a placeholder for now.
- return InvalidStateError;
+ return OperationError;
case blink::WebCryptoErrorTypeType:
// FIXME: This should construct a TypeError instead. For now do
// something to facilitate refactor, but this will need to be
« no previous file with comments | « Source/core/dom/ExceptionCode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698