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

Side by Side Diff: chrome/test/data/extensions/api_test/webrtc_from_web_accessible_resource/iframe.js

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fixes Created 5 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var extensionId = "knldjmfmopnpolahpmmgbagdohdnhkik";
robwu 2015/10/14 09:05:35 extensionId seems unused.
jww 2015/10/15 18:19:41 Done.
6
7 var successCallback = chrome.test.succeed;
8 var failCallback = chrome.test.fail;
9
10 console.log('location.search == ' + document.location.search);
11 if (document.location.search === '?fail') {
12 console.log('failing...');
robwu 2015/10/14 09:05:35 Could you reword this to be a more descriptive? (2
jww 2015/10/15 18:19:41 Instead, I'll just remove all of these unnecessary
13 successCallback = chrome.test.fail;
robwu 2015/10/14 09:05:35 Note that the success callback of gUM is invoked w
jww 2015/10/15 18:19:41 Done.
14 failCallback = chrome.test.succeed;
15 } else {
16 console.log('succeeding...');
17 }
18
19 navigator.webkitGetUserMedia({
20 audio: true,
21 video: false
22 }, successCallback, failCallback);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698