| Index: Source/modules/mediasource/WebKitSourceBuffer.cpp
|
| diff --git a/Source/modules/mediasource/WebKitSourceBuffer.cpp b/Source/modules/mediasource/WebKitSourceBuffer.cpp
|
| index efbc916c86b42a05d8aba99ab662f4f805dca43e..c3c2a12b88b45f70a8ab45fb2a2cc0e88f32dd47 100644
|
| --- a/Source/modules/mediasource/WebKitSourceBuffer.cpp
|
| +++ b/Source/modules/mediasource/WebKitSourceBuffer.cpp
|
| @@ -65,7 +65,7 @@ PassRefPtr<TimeRanges> WebKitSourceBuffer::buffered(ExceptionState& es) const
|
| // 1. If this object has been removed from the sourceBuffers attribute of the parent media source then throw an
|
| // InvalidStateError exception and abort these steps.
|
| if (isRemoved()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return 0;
|
| }
|
|
|
| @@ -84,7 +84,7 @@ void WebKitSourceBuffer::setTimestampOffset(double offset, ExceptionState& es)
|
| // 1. If this object has been removed from the sourceBuffers attribute of the parent media source then throw an
|
| // InvalidStateError exception and abort these steps.
|
| if (isRemoved()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| @@ -96,7 +96,7 @@ void WebKitSourceBuffer::setTimestampOffset(double offset, ExceptionState& es)
|
| // 5. If this object is waiting for the end of a media segment to be appended, then throw an InvalidStateError
|
| // and abort these steps.
|
| if (!m_private->setTimestampOffset(offset)) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| @@ -111,14 +111,14 @@ void WebKitSourceBuffer::append(PassRefPtr<Uint8Array> data, ExceptionState& es)
|
|
|
| // 2. If data is null then throw an InvalidAccessError exception and abort these steps.
|
| if (!data) {
|
| - es.throwDOMException(InvalidAccessError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| return;
|
| }
|
|
|
| // 3. If this object has been removed from the sourceBuffers attribute of media source then throw
|
| // an InvalidStateError exception and abort these steps.
|
| if (isRemoved()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| @@ -139,7 +139,7 @@ void WebKitSourceBuffer::abort(ExceptionState& es)
|
| // 2. If the readyState attribute of the parent media source is not in the "open" state
|
| // then throw an InvalidStateError exception and abort these steps.
|
| if (isRemoved() || !m_source->isOpen()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
|
|