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

Unified Diff: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp

Issue 235123002: Should throw TypeError instead of TypeMismatchError (modules) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/modules/crypto/Crypto.cpp ('k') | Source/modules/filesystem/FileWriterSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
diff --git a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
index e88ed8b31dcb8d89cf179a679aa3e3b3ef3c7c78..f49dd9a97b543351adf3fc6f89ce3b7d7451aea5 100644
--- a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
+++ b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
@@ -197,7 +197,7 @@ void HTMLMediaElementEncryptedMedia::addKey(blink::WebMediaPlayer* webMediaPlaye
}
if (!key->length()) {
- exceptionState.throwDOMException(TypeMismatchError, "The key provided is invalid.");
+ exceptionState.throwDOMException(TypeError, "The key provided is invalid.");
return;
}
« no previous file with comments | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/filesystem/FileWriterSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698