| Index: Source/core/html/track/TextTrack.cpp
|
| diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp
|
| index 6a392efa8f5962e9c89e553ec89187bdfbb274ab..70fed99cc76d4d00f674a734cb40bc2ea422c1e3 100644
|
| --- a/Source/core/html/track/TextTrack.cpp
|
| +++ b/Source/core/html/track/TextTrack.cpp
|
| @@ -266,13 +266,13 @@ void TextTrack::removeCue(TextTrackCue* cue, ExceptionState& es)
|
| // 1. If the given cue is not currently listed in the method's TextTrack
|
| // object's text track's text track list of cues, then throw a NotFoundError exception.
|
| if (cue->track() != this) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return;
|
| }
|
|
|
| // 2. Remove cue from the method's TextTrack object's text track's text track list of cues.
|
| if (!m_cues || !m_cues->remove(cue)) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| @@ -347,12 +347,12 @@ void TextTrack::removeRegion(TextTrackRegion* region, ExceptionState &es)
|
| // 1. If the given region is not currently listed in the method's TextTrack
|
| // object's text track list of regions, then throw a NotFoundError exception.
|
| if (region->track() != this) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return;
|
| }
|
|
|
| if (!m_regions || !m_regions->remove(region)) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
|
|