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

Unified Diff: chrome/browser/resources/about_credits.tmpl

Issue 7215034: Apply CSP to chrome: and about: pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
Index: chrome/browser/resources/about_credits.tmpl
===================================================================
--- chrome/browser/resources/about_credits.tmpl (revision 90431)
+++ chrome/browser/resources/about_credits.tmpl (working copy)
@@ -2,6 +2,7 @@
<html>
<head>
<meta charset="utf-8">
+<meta http-equiv="X-WebKit-CSP" content="object-src 'none'; script-src 'self'">
<title>Credits</title>
<style>
body {
@@ -51,33 +52,13 @@
margin-top:0px;
}
</style>
-<script>
-function $(o) {return document.getElementById(o);}
-function toggle(o) {
- var licence = o.nextSibling;
-
- while (licence.className != 'licence') {
- if (!licence) return false;
- licence = licence.nextSibling;
- }
-
- if (licence.style && licence.style.display == 'block') {
- licence.style.display = 'none';
- o.innerHTML = 'show license';
- } else {
- licence.style.display = 'block';
- o.innerHTML = 'hide license';
- }
- return false;
-}
-</script>
</head>
<body>
<span class="page-title" style="float:left;">Credits</span>
-<a href="javascript:window.print();" style="float:right;">Print</a>
+<a id="print-link" href="#" style="float:right;">Print</a>
<div style="clear:both; overflow:auto;"><!-- Chromium <3s the following projects -->
{{entries}}
</div>
-
+<script src="chrome://credits/credits.js"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698