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

Unified Diff: chrome/browser/resources/md_downloads/item.js

Issue 2537893004: Remove XSS from chrome://downloads (Closed)
Patch Set: Created 4 years 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/md_downloads/crisper.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/item.js
diff --git a/chrome/browser/resources/md_downloads/item.js b/chrome/browser/resources/md_downloads/item.js
index 5ef69bfb046b34ea00b9308da7519e354f659fd9..00a3716f6a3ac235f0b2dc92244be8615b10c772 100644
--- a/chrome/browser/resources/md_downloads/item.js
+++ b/chrome/browser/resources/md_downloads/item.js
@@ -116,7 +116,7 @@ cr.define('downloads', function() {
var url = 'chrome://extensions#' + this.data.by_ext_id;
var name = this.data.by_ext_name;
- return loadTimeData.getStringF('controlledByUrl', url, name);
+ return loadTimeData.getStringF('controlledByUrl', url, HTMLEscape(name));
},
/** @private */
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698