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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/downloads.html ('k') | chrome/browser/resources/history.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /////////////////////////////////////////////////////////////////////////////// 5 ///////////////////////////////////////////////////////////////////////////////
6 // Helper functions 6 // Helper functions
7 function $(o) {return document.getElementById(o);} 7 function $(o) {return document.getElementById(o);}
8 8
9 /** 9 /**
10 * Sets the display style of a node. 10 * Sets the display style of a node.
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 downloads.updated(results[i]); 580 downloads.updated(results[i]);
581 // Do as much as we can in 50ms. 581 // Do as much as we can in 50ms.
582 if (Date.now() - start > 50) { 582 if (Date.now() - start > 50) {
583 clearTimeout(resultsTimeout); 583 clearTimeout(resultsTimeout);
584 resultsTimeout = setTimeout(downloadUpdated, 5, results.slice(i + 1)); 584 resultsTimeout = setTimeout(downloadUpdated, 5, results.slice(i + 1));
585 break; 585 break;
586 } 586 }
587 } 587 }
588 } 588 }
589 589
590 // Add handlers to HTML elements.
591 document.body.onload = load;
592 $('clear-all').onclick = function () { clearAll(''); };
593 $('search-link').onclick = function () {
594 setSearch('');
595 return false;
596 };
597 $('search-form').onclick = function () {
abarth-chromium 2011/05/23 18:22:08 Shouldn't one of these be onsubmit?
598 setSearch(this.term.value);
599 return false;
600 };
601
OLDNEW
« 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