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

Unified Diff: chrome/browser/resources/settings/about_page/about_page.js

Issue 2221563002: MD Settings: About page, allow error messages to contain HTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Done. Created 4 years, 4 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/settings/about_page/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index 07d8eaa857006e28409964ad66182ee06d85ae13..946ae37bdcc9a57ce456a667c6d177103ceb45a2 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -176,7 +176,10 @@ Polymer({
</if>
return this.i18n('aboutUpgradeUpdating');
default:
- return this.currentUpdateStatusEvent_.message || '';
+ return this.currentUpdateStatusEvent_.message ?
+ parseHtmlSubset(
+ this.currentUpdateStatusEvent_.message).firstChild.outerHTML :
Dan Beam 2016/08/05 23:45:28 nit: var message = this.currentUpdateStatusEvent_
Dan Beam 2016/08/05 23:47:50 wait, doesn't this only work if it starts with 1 (
Dan Beam 2016/08/05 23:49:30 I think parseHtmlSubset('<b>' + text + '</b>').fir
dpapad 2016/08/06 00:00:14 Good catch. Done.
+ '';
}
},

Powered by Google App Engine
This is Rietveld 408576698