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

Unified Diff: chrome/browser/resources/media_internals/media_internals.js

Issue 7638002: Apply content-security-policy directive to chrome://media-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/browser/resources/media_internals.html ('k') | chrome/browser/ui/webui/media/media_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/media_internals/media_internals.js
===================================================================
--- chrome/browser/resources/media_internals/media_internals.js (revision 96277)
+++ chrome/browser/resources/media_internals/media_internals.js (working copy)
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+<include src="cache_entry.js"/>
+<include src="item_store.js"/>
+<include src="disjoint_range_set.js"/>
+
cr.define('media', function() {
// Stores information on open audio streams, referenced by id.
@@ -48,9 +52,9 @@
out.className = 'audio-stream';
out.setAttribute('status', stream.status);
- out.innerHTML += 'Audio stream ' + stream.id.split('.')[1];
- out.innerHTML += ' is ' + (stream.playing ? 'playing' : 'paused');
- out.innerHTML += ' at ' + Math.round(stream.volume * 100) + '% volume.';
+ out.textContent += 'Audio stream ' + stream.id.split('.')[1];
+ out.textContent += ' is ' + (stream.playing ? 'playing' : 'paused');
+ out.textContent += ' at ' + Math.round(stream.volume * 100) + '% volume.';
return out;
};
« no previous file with comments | « chrome/browser/resources/media_internals.html ('k') | chrome/browser/ui/webui/media/media_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698