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

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

Issue 1336633002: Revert "Removal of getUserMedia() on insecure origins" (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2490
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>getUserMedia On An Insecure Origin</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/resources/get-host-info.js"></script>
6 <script>
7 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
8 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.p athname;
9 } else {
10 if (window.testRunner)
11 testRunner.overridePreference("WebKitStrictPowerfulFeatureRestrictions", true);
12
13 test(function () {
14 assert_throws(
15 "SecurityError",
16 function() {
17 navigator.webkitGetUserMedia(
18 { video:true },
19 function() { assert_unreached("Success callback should not b e called."); },
20 function() { assert_unreached("Error callback should not be called."); });
21 });
22 }, 'getUserMedia');
23 }
24 </script>
OLDNEW
« 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