| Index: Source/modules/encryptedmedia/MediaKeys.cpp
|
| diff --git a/Source/modules/encryptedmedia/MediaKeys.cpp b/Source/modules/encryptedmedia/MediaKeys.cpp
|
| index 59ffc64ab1d71da80cbe4dffeb64fa372bf37fb8..6b97656e8eafa8eacc61bcf5fb86e68cafe05f31 100644
|
| --- a/Source/modules/encryptedmedia/MediaKeys.cpp
|
| +++ b/Source/modules/encryptedmedia/MediaKeys.cpp
|
| @@ -44,13 +44,13 @@ PassRefPtr<MediaKeys> MediaKeys::create(const String& keySystem, ExceptionState&
|
|
|
| // 1. If keySystem is null or an empty string, throw an InvalidAccessError exception and abort these steps.
|
| if (keySystem.isEmpty()) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| return 0;
|
| }
|
|
|
| // 2. If keySystem is not one of the user agent's supported Key Systems, throw a NotSupportedError and abort these steps.
|
| if (!ContentDecryptionModule::supportsKeySystem(keySystem)) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return 0;
|
| }
|
|
|
| @@ -58,7 +58,7 @@ PassRefPtr<MediaKeys> MediaKeys::create(const String& keySystem, ExceptionState&
|
| // 4. Load cdm if necessary.
|
| OwnPtr<ContentDecryptionModule> cdm = ContentDecryptionModule::create(keySystem);
|
| if (!cdm) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return 0;
|
| }
|
|
|
| @@ -93,7 +93,7 @@ PassRefPtr<MediaKeySession> MediaKeys::createSession(ScriptExecutionContext* con
|
| // 1. If type is null or an empty string and initData is not null or an empty string, throw an
|
| // InvalidAccessError exception and abort these steps.
|
| if ((type.isEmpty()) && (!initData || initData->length())) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| return 0;
|
| }
|
|
|
| @@ -101,7 +101,7 @@ PassRefPtr<MediaKeySession> MediaKeys::createSession(ScriptExecutionContext* con
|
| // a NotSupportedError exception and abort these steps.
|
| ASSERT(!type.isEmpty());
|
| if (type.isEmpty() || !m_cdm->supportsMIMEType(type)) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return 0;
|
| }
|
|
|
|
|