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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp

Issue 2848953003: Do not send pings for anchor elements in MHTML pages (Closed)
Patch Set: Rebase 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
Index: third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp
index 3e5f9fa90347671ed5c172a2ad16d2f2eb1a1cb9..e4e4606f31fec1ac9c406a9fcf1827353ee5e9c5 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp
@@ -303,6 +303,12 @@ TEST_F(WebFrameSerializerSanitizationTest, RemoveInlineScriptInAttributes) {
EXPECT_NE(WTF::kNotFound, mhtml.Find("src="));
}
+TEST_F(WebFrameSerializerSanitizationTest, RemoveOtherAttributes) {
+ String mhtml =
+ GenerateMHTMLFromHtml("http://www.test.com", "remove_attributes.html");
+ EXPECT_EQ(WTF::kNotFound, mhtml.Find("ping="));
+}
+
TEST_F(WebFrameSerializerSanitizationTest, DisableFormElements) {
String mhtml = GenerateMHTMLFromHtml("http://www.test.com", "form.html");

Powered by Google App Engine
This is Rietveld 408576698