Index: Source/modules/mediastream/NavigatorMediaStream.cpp |
diff --git a/Source/modules/mediastream/NavigatorMediaStream.cpp b/Source/modules/mediastream/NavigatorMediaStream.cpp |
index 54fd5c0f5693162c8c2e5cbf9af0eaae1314155a..fb81b87347e0d5d3c0e6ed456bfc17ca77ed6369 100644 |
--- a/Source/modules/mediastream/NavigatorMediaStream.cpp |
+++ b/Source/modules/mediastream/NavigatorMediaStream.cpp |
@@ -67,10 +67,8 @@ void NavigatorMediaStream::webkitGetUserMedia(Navigator& navigator, const Dictio |
} else { |
UseCounter::countDeprecation(navigator.frame(), UseCounter::GetUserMediaInsecureOrigin); |
OriginsUsingFeatures::countAnyWorld(*navigator.frame()->document(), OriginsUsingFeatures::Feature::GetUserMediaInsecureOrigin); |
- if (navigator.frame()->settings()->strictPowerfulFeatureRestrictions()) { |
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("webkitGetUserMedia", "Navigator", errorMessage)); |
- return; |
- } |
+ exceptionState.throwSecurityError(errorMessage); |
Mike West
2015/08/18 00:28:38
Why throw? Why not go through the error callback l
philipj_slow
2015/08/18 08:35:10
Looking at http://w3c.github.io/mediacapture-main/
jww
2015/08/18 16:27:12
Looking at https://w3c.github.io/mediacapture-main
philipj_slow
2015/08/19 12:26:43
Oh, I didn't see the "Permission Failure" bit in t
philipj_slow
2015/08/19 12:39:24
Oh, I see the difficulty now, this is webkitGetUse
jww
2015/08/19 17:10:33
Okay, I've modified to call the error callback wit
|
+ return; |
} |
UserMediaRequest* request = UserMediaRequest::create(navigator.frame()->document(), userMedia, options, successCallback, errorCallback, exceptionState); |