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

Unified Diff: LayoutTests/http/tests/security/powerfulFeatureRestrictions/getUserMedia-on-insecure-origin.html

Issue 1284193003: Removal of getUserMedia() on insecure origins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Dedupped secure scheme registry. 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/powerfulFeatureRestrictions/getUserMedia-on-insecure-origin.html
diff --git a/LayoutTests/http/tests/security/powerfulFeatureRestrictions/getUserMedia-on-insecure-origin.html b/LayoutTests/http/tests/security/powerfulFeatureRestrictions/getUserMedia-on-insecure-origin.html
deleted file mode 100644
index 1d106bbfc018ec1f9789ef352edc71ff10219476..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/powerfulFeatureRestrictions/getUserMedia-on-insecure-origin.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<title>getUserMedia On An Insecure Origin</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="/resources/get-host-info.js"></script>
-<script>
-if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
- window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
-} else {
- if (window.testRunner)
- testRunner.overridePreference("WebKitStrictPowerfulFeatureRestrictions", true);
-
- test(function () {
- assert_throws(
- "SecurityError",
- function() {
- navigator.webkitGetUserMedia(
- { video:true },
- function() { assert_unreached("Success callback should not be called."); },
- function() { assert_unreached("Error callback should not be called."); });
- });
- }, 'getUserMedia');
-}
-</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698