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

Side by Side Diff: chrome/browser/resources/downloads.html

Issue 201129: Ensure that HTML can't be executed when entered on the "Search History" page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « no previous file | 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html i18n-values="dir:textdirection;"> 2 <html i18n-values="dir:textdirection;">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="title"></title> 5 <title i18n-content="title"></title>
6 <link rel="icon" href="../../app/theme/downloads_favicon.png"> 6 <link rel="icon" href="../../app/theme/downloads_favicon.png">
7 <style> 7 <style>
8 body { 8 body {
9 background-color:white; 9 background-color:white;
10 color:black; 10 color:black;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 */ 253 */
254 Downloads.prototype.setSearchText = function(searchText) { 254 Downloads.prototype.setSearchText = function(searchText) {
255 this.searchText_ = searchText; 255 this.searchText_ = searchText;
256 } 256 }
257 257
258 /** 258 /**
259 * Update the summary block above the results 259 * Update the summary block above the results
260 */ 260 */
261 Downloads.prototype.updateSummary = function() { 261 Downloads.prototype.updateSummary = function() {
262 if (this.searchText_) { 262 if (this.searchText_) {
263 this.summary_.innerHTML = localStrings.formatString( 263 this.summary_.textContent = localStrings.formatString(
264 'searchresultsfor', this.searchText_); 264 'searchresultsfor', this.searchText_);
265 } else { 265 } else {
266 this.summary_.innerHTML = localStrings.getString('downloads'); 266 this.summary_.innerHTML = localStrings.getString('downloads');
267 } 267 }
268 268
269 var hasDownloads = false; 269 var hasDownloads = false;
270 for (var i in this.downloads_) { 270 for (var i in this.downloads_) {
271 hasDownloads = true; 271 hasDownloads = true;
272 break; 272 break;
273 } 273 }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 <div id="downloads-summary"> 711 <div id="downloads-summary">
712 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span> 712 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span>
713 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle ar All</a> 713 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle ar All</a>
714 </div> 714 </div>
715 <div id="downloads-display"></div> 715 <div id="downloads-display"></div>
716 </div> 716 </div>
717 <div class="footer"> 717 <div class="footer">
718 </div> 718 </div>
719 </body> 719 </body>
720 </html> 720 </html>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/history.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698