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

Side by Side Diff: chrome/test/data/extensions/api_test/tab_capture/permissions/test.js

Issue 11198044: Make tab capture media stream requests verify that the request came from extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 tabCapture = chrome.tabCapture;
6
7 chrome.test.runTests([
8
9 function cannotDirectlyUseGetUserMedia() {
10 var failure = function() {
11 chrome.test.succeed();
12 };
13
14 var success = function(stream) {
15 chrome.test.fail();
16 };
17
18 navigator.webkitGetUserMedia({
19 video: {
20 mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' },
21 },
22 audio: {
23 mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' },
24 }
25 }, success, failure);
26 },
27
28 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698