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

Unified Diff: ui/webui/resources/js/parse_html_subset.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js 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
Index: ui/webui/resources/js/parse_html_subset.js
diff --git a/ui/webui/resources/js/parse_html_subset.js b/ui/webui/resources/js/parse_html_subset.js
index 3fa9bfe948d422d4b479881642bf773c08f17321..bd53e8e70572e3010b47ea8a9f74b7261f7712fb 100644
--- a/ui/webui/resources/js/parse_html_subset.js
+++ b/ui/webui/resources/js/parse_html_subset.js
@@ -18,8 +18,8 @@ var parseHtmlSubset = (function() {
var allowedAttributes = {
'href': function(node, value) {
// Only allow a[href] starting with chrome:// and https://
- return node.tagName == 'A' && (value.startsWith('chrome://') ||
- value.startsWith('https://'));
+ return node.tagName == 'A' &&
+ (value.startsWith('chrome://') || value.startsWith('https://'));
},
'target': function(node, value) {
// Only allow a[target='_blank'].

Powered by Google App Engine
This is Rietveld 408576698