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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.cpp

Issue 2531163004: Remove attributes that contain javascript from MHTML (Closed)
Patch Set: Address final feedback 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: third_party/WebKit/Source/core/frame/FrameSerializer.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
index fb3e8184bf2ee03f678319e2aab2f2a178f489bb..c2041086ac548e84e3404397db3b5bc03bd27b55 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
@@ -99,7 +99,7 @@ class SerializerMarkupAccumulator : public MarkupAccumulator {
protected:
void appendText(StringBuilder& out, Text&) override;
- bool shouldIgnoreAttribute(const Attribute&) override;
+ bool shouldIgnoreAttribute(const Element&, const Attribute&) override;
void appendElement(StringBuilder& out, Element&, Namespaces*) override;
void appendAttribute(StringBuilder& out,
const Element&,
@@ -147,8 +147,9 @@ void SerializerMarkupAccumulator::appendText(StringBuilder& result,
}
bool SerializerMarkupAccumulator::shouldIgnoreAttribute(
+ const Element& element,
const Attribute& attribute) {
- return m_delegate.shouldIgnoreAttribute(attribute);
+ return m_delegate.shouldIgnoreAttribute(element, attribute);
}
void SerializerMarkupAccumulator::appendElement(StringBuilder& result,
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.h ('k') | third_party/WebKit/Source/web/WebFrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698