| Index: Source/modules/mediasource/MediaSource.cpp
|
| diff --git a/Source/modules/mediasource/MediaSource.cpp b/Source/modules/mediasource/MediaSource.cpp
|
| index 5591ad2d405014993f2903a449ac366dae2cd5b7..ca91efc8ae07b47cebd74c725082dd7701582cdc 100644
|
| --- a/Source/modules/mediasource/MediaSource.cpp
|
| +++ b/Source/modules/mediasource/MediaSource.cpp
|
| @@ -76,21 +76,21 @@ SourceBuffer* MediaSource::addSourceBuffer(const String& type, ExceptionState& e
|
| // 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;
|
| }
|
|
|
| @@ -123,14 +123,14 @@ void MediaSource::removeSourceBuffer(SourceBuffer* buffer, ExceptionState& es)
|
| // 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 sourceBuffer specifies an object that is not in sourceBuffers then
|
| // throw a NotFoundError exception and abort these steps.
|
| if (!m_sourceBuffers->length() || !m_sourceBuffers->contains(buffer)) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return;
|
| }
|
|
|
|
|