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

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

Issue 1291723004: Remove all support for <applet> handling in Chrome. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/html/parser/XSSAuditor.h ('k') | Source/core/layout/LayoutApplet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/XSSAuditor.cpp
diff --git a/Source/core/html/parser/XSSAuditor.cpp b/Source/core/html/parser/XSSAuditor.cpp
index e73259145366c12c821a710fe83d3637529478ee..57cab49a140d85313d3dcec702ff0b22b5468738 100644
--- a/Source/core/html/parser/XSSAuditor.cpp
+++ b/Source/core/html/parser/XSSAuditor.cpp
@@ -434,8 +434,6 @@ bool XSSAuditor::filterStartToken(const FilterTokenRequest& request)
didBlockScript |= filterParamToken(request);
else if (hasName(request.token, embedTag))
didBlockScript |= filterEmbedToken(request);
- else if (hasName(request.token, appletTag))
- didBlockScript |= filterAppletToken(request);
else if (hasName(request.token, iframeTag) || hasName(request.token, frameTag))
didBlockScript |= filterFrameToken(request);
else if (hasName(request.token, metaTag))
@@ -544,19 +542,6 @@ bool XSSAuditor::filterEmbedToken(const FilterTokenRequest& request)
return didBlockScript;
}
-bool XSSAuditor::filterAppletToken(const FilterTokenRequest& request)
-{
- ASSERT(request.token.type() == HTMLToken::StartTag);
- ASSERT(hasName(request.token, appletTag));
-
- bool didBlockScript = false;
- if (isContainedInRequest(canonicalizedSnippetForTagName(request))) {
- didBlockScript |= eraseAttributeIfInjected(request, codeAttr, String(), SrcLikeAttributeTruncation);
- didBlockScript |= eraseAttributeIfInjected(request, objectAttr);
- }
- return didBlockScript;
-}
-
bool XSSAuditor::filterFrameToken(const FilterTokenRequest& request)
{
ASSERT(request.token.type() == HTMLToken::StartTag);
« no previous file with comments | « Source/core/html/parser/XSSAuditor.h ('k') | Source/core/layout/LayoutApplet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698