Index: Source/modules/encryptedmedia/MediaKeySession.cpp |
diff --git a/Source/modules/encryptedmedia/MediaKeySession.cpp b/Source/modules/encryptedmedia/MediaKeySession.cpp |
index f95704a5dd77f8d8f65c2a13140fd6b8e5041056..1a120badecf0c7ac7d6a25215e00dd6f45d41a8b 100644 |
--- a/Source/modules/encryptedmedia/MediaKeySession.cpp |
+++ b/Source/modules/encryptedmedia/MediaKeySession.cpp |
@@ -112,10 +112,10 @@ void MediaKeySession::update(Uint8Array* key, ExceptionCode& ec) |
{ |
// From <http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-addkey>: |
// The addKey(key) method must run the following steps: |
- // 1. If the first or second argument [sic] is null or an empty array, throw an INVALID_ACCESS_ERR. |
+ // 1. If the first or second argument [sic] is null or an empty array, throw an InvalidAccessError. |
// NOTE: the reference to a "second argument" is a spec bug. |
if (!key || !key->length()) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return; |
} |