| Index: Source/modules/encryptedmedia/MediaKeySession.cpp
|
| diff --git a/Source/modules/encryptedmedia/MediaKeySession.cpp b/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| index 549945c2f23d4b3a0c75a1ba1ee230bcaee3fb4d..1a120badecf0c7ac7d6a25215e00dd6f45d41a8b 100644
|
| --- a/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| +++ b/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| @@ -26,9 +26,7 @@
|
| #include "config.h"
|
| #include "modules/encryptedmedia/MediaKeySession.h"
|
|
|
| -#include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/Event.h"
|
| -#include "core/dom/ExceptionCode.h"
|
| #include "core/dom/GenericEventQueue.h"
|
| #include "core/html/MediaKeyError.h"
|
| #include "core/platform/graphics/ContentDecryptionModule.h"
|
| @@ -110,14 +108,14 @@ void MediaKeySession::keyRequestTimerFired(Timer<MediaKeySession>*)
|
| }
|
| }
|
|
|
| -void MediaKeySession::update(Uint8Array* key, ExceptionState& es)
|
| +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 InvalidAccessError.
|
| // NOTE: the reference to a "second argument" is a spec bug.
|
| if (!key || !key->length()) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + ec = InvalidAccessError;
|
| return;
|
| }
|
|
|
|
|