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

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

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.h
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.h b/third_party/WebKit/Source/core/frame/FrameSerializer.h
index e2e6885bd68b150614d52545edbb157c0f6f2fa9..856863fd3bbd6ee9b5008477fedd30417b4889ac 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.h
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.h
@@ -68,7 +68,9 @@ class CORE_EXPORT FrameSerializer final {
class Delegate {
public:
// Controls whether HTML serialization should skip the given attribute.
- virtual bool shouldIgnoreAttribute(const Attribute&) { return false; }
+ virtual bool shouldIgnoreAttribute(const Element&, const Attribute&) {
+ return false;
+ }
// Method allowing the Delegate control which URLs are written into the
// generated html document.

Powered by Google App Engine
This is Rietveld 408576698