Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1907)

Unified Diff: Source/modules/mediastream/NavigatorMediaStream.cpp

Issue 1284193003: Removal of getUserMedia() on insecure origins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698