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

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

Issue 7038046: Insert meta tag turning on content-security-protection for chrome://settings, history, downloads ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/downloads.html ('k') | chrome/browser/resources/history.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads.js
===================================================================
--- chrome/browser/resources/downloads.js (revision 86705)
+++ chrome/browser/resources/downloads.js (working copy)
@@ -587,3 +587,15 @@
}
}
+// Add handlers to HTML elements.
+document.body.onload = load;
+$('clear-all').onclick = function () { clearAll(''); };
+$('search-link').onclick = function () {
+ setSearch('');
+ return false;
+};
+$('search-form').onsubmit = function () {
+ setSearch(this.term.value);
+ return false;
+};
+
« no previous file with comments | « chrome/browser/resources/downloads.html ('k') | chrome/browser/resources/history.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698