| Index: Source/modules/mediasource/WebKitMediaSource.cpp
|
| diff --git a/Source/modules/mediasource/WebKitMediaSource.cpp b/Source/modules/mediasource/WebKitMediaSource.cpp
|
| index 860a2938dba29f12910fe7bb275a8a1ac891108a..77b42231aabab943bf5f14d1e56d1244d8c928df 100644
|
| --- a/Source/modules/mediasource/WebKitMediaSource.cpp
|
| +++ b/Source/modules/mediasource/WebKitMediaSource.cpp
|
| @@ -75,21 +75,21 @@ WebKitSourceBuffer* WebKitMediaSource::addSourceBuffer(const String& type, Excep
|
| // 1. If type is null or an empty then throw an InvalidAccessError exception and
|
| // abort these steps.
|
| if (type.isNull() || type.isEmpty()) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| return 0;
|
| }
|
|
|
| // 2. If type contains a MIME type that is not supported ..., then throw a
|
| // NotSupportedError exception and abort these steps.
|
| if (!isTypeSupported(type)) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return 0;
|
| }
|
|
|
| // 4. If the readyState attribute is not in the "open" state then throw an
|
| // InvalidStateError exception and abort these steps.
|
| if (!isOpen()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return 0;
|
| }
|
|
|
| @@ -114,14 +114,14 @@ void WebKitMediaSource::removeSourceBuffer(WebKitSourceBuffer* buffer, Exception
|
| // 1. If sourceBuffer is null then throw an InvalidAccessError exception and
|
| // abort these steps.
|
| if (!buffer) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| return;
|
| }
|
|
|
| // 2. If sourceBuffers is empty then throw an InvalidStateError exception and
|
| // abort these steps.
|
| if (isClosed() || !m_sourceBuffers->length()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| @@ -130,7 +130,7 @@ void WebKitMediaSource::removeSourceBuffer(WebKitSourceBuffer* buffer, Exception
|
| // 6. Remove sourceBuffer from sourceBuffers and fire a removesourcebuffer event
|
| // on that object.
|
| if (!m_sourceBuffers->remove(buffer)) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return;
|
| }
|
|
|
|
|