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

Unified Diff: third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp

Issue 2868973003: XSSAuditor: truncate form action attribute like other src-like attributes (Closed)
Patch Set: rebase, update expectation Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
index cc7279125f0693aa9df14d669cc53c1c8af2d461..d425e1e35305ef1c9099e432e2b2e5c9d93a8866 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
@@ -649,7 +649,8 @@ bool XSSAuditor::FilterFormToken(const FilterTokenRequest& request) {
DCHECK_EQ(request.token.GetType(), HTMLToken::kStartTag);
DCHECK(HasName(request.token, formTag));
- return EraseAttributeIfInjected(request, actionAttr, kURLWithUniqueOrigin);
+ return EraseAttributeIfInjected(request, actionAttr, kURLWithUniqueOrigin,
+ kSrcLikeAttributeTruncation);
}
bool XSSAuditor::FilterInputToken(const FilterTokenRequest& request) {
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698