Chromium Code Reviews

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 62543003: Added InvalidAccessError exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to master Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 9c798cd26ab5034904c8fd4aab2f770ad7a7fae5..1ec05752e7c4a890ae99b8c952484f91a02a8b54 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -166,6 +166,9 @@ static void throwExceptionForMediaKeyException(MediaPlayer::MediaKeyException ex
case MediaPlayer::KeySystemNotSupported:
exceptionState.throwUninformativeAndGenericDOMException(NotSupportedError);
return;
+ case MediaPlayer::InvalidAccess:
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+ return;
}
ASSERT_NOT_REACHED();
« no previous file with comments | « no previous file | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine