Diff
Modified: trunk/LayoutTests/ChangeLog (270597 => 270598)
--- trunk/LayoutTests/ChangeLog 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/LayoutTests/ChangeLog 2020-12-09 21:24:40 UTC (rev 270598)
@@ -1,3 +1,18 @@
+2020-12-09 John Wilander <[email protected]>
+
+ PCM: Make JSON key names use underscores according to the W3C conversation
+ https://bugs.webkit.org/show_bug.cgi?id=219696
+ <rdar://problem/72143642>
+
+ Reviewed by Brent Fulgham.
+
+ Further discussion in https://github.com/privacycg/private-click-measurement/issues/30
+ concluded that the JSON report should use underscores in its keys instead of dashes.
+ This patch makes that change and shortens the "report_version" key to just "version".
+
+ * http/tests/privateClickMeasurement/expired-attribution-report-gets-sent-on-session-start-expected.txt:
+ * http/tests/privateClickMeasurement/send-attribution-conversion-request-expected.txt:
+
2020-12-09 Antti Koivisto <[email protected]>
Font loads are triggered too late
Modified: trunk/LayoutTests/http/tests/privateClickMeasurement/expired-attribution-report-gets-sent-on-session-start-expected.txt (270597 => 270598)
--- trunk/LayoutTests/http/tests/privateClickMeasurement/expired-attribution-report-gets-sent-on-session-start-expected.txt 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/LayoutTests/http/tests/privateClickMeasurement/expired-attribution-report-gets-sent-on-session-start-expected.txt 2020-12-09 21:24:40 UTC (rev 270598)
@@ -11,7 +11,7 @@
REQUEST_URI: /privateClickMeasurement/resources/conversionReport.php
No cookies in attribution request.
Request body:
-{"source-engagement-type":"click","source-site":"127.0.0.1","source-id":3,"attributed-on-site":"localhost","trigger-data":12,"report-version":1}
+{"source_engagement_type":"click","source_site":"127.0.0.1","source_id":3,"attributed_on_site":"localhost","trigger_data":12,"version":1}
No stored Private Click Measurement data.
Modified: trunk/LayoutTests/http/tests/privateClickMeasurement/send-attribution-conversion-request-expected.txt (270597 => 270598)
--- trunk/LayoutTests/http/tests/privateClickMeasurement/send-attribution-conversion-request-expected.txt 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/LayoutTests/http/tests/privateClickMeasurement/send-attribution-conversion-request-expected.txt 2020-12-09 21:24:40 UTC (rev 270598)
@@ -16,7 +16,7 @@
REQUEST_URI: /privateClickMeasurement/resources/conversionReport.php
No cookies in attribution request.
Request body:
-{"source-engagement-type":"click","source-site":"127.0.0.1","source-id":3,"attributed-on-site":"localhost","trigger-data":12,"report-version":1}
+{"source_engagement_type":"click","source_site":"127.0.0.1","source_id":3,"attributed_on_site":"localhost","trigger_data":12,"version":1}
--------
Modified: trunk/Source/WebCore/ChangeLog (270597 => 270598)
--- trunk/Source/WebCore/ChangeLog 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/Source/WebCore/ChangeLog 2020-12-09 21:24:40 UTC (rev 270598)
@@ -1,3 +1,20 @@
+2020-12-09 John Wilander <[email protected]>
+
+ PCM: Make JSON key names use underscores according to the W3C conversation
+ https://bugs.webkit.org/show_bug.cgi?id=219696
+ <rdar://problem/72143642>
+
+ Reviewed by Brent Fulgham.
+
+ Further discussion in https://github.com/privacycg/private-click-measurement/issues/30
+ concluded that the JSON report should use underscores in its keys instead of dashes.
+ This patch makes that change and shortens the "report_version" key to just "version".
+
+ Existing tests updated.
+
+ * loader/PrivateClickMeasurement.cpp:
+ (WebCore::PrivateClickMeasurement::json const):
+
2020-12-09 Antoine Quint <[email protected]>
text-decoration-color animation should not be discrete
Modified: trunk/Source/WebCore/loader/PrivateClickMeasurement.cpp (270597 => 270598)
--- trunk/Source/WebCore/loader/PrivateClickMeasurement.cpp 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/Source/WebCore/loader/PrivateClickMeasurement.cpp 2020-12-09 21:24:40 UTC (rev 270598)
@@ -160,12 +160,12 @@
if (!m_attributionTriggerData || !isValid())
return reportDetails;
- reportDetails->setString("source-engagement-type"_s, "click"_s);
- reportDetails->setString("source-site"_s, m_sourceSite.registrableDomain.string());
- reportDetails->setInteger("source-id"_s, m_sourceID.id);
- reportDetails->setString("attributed-on-site"_s, m_attributeOnSite.registrableDomain.string());
- reportDetails->setInteger("trigger-data"_s, m_attributionTriggerData->data);
- reportDetails->setInteger("report-version"_s, 1);
+ reportDetails->setString("source_engagement_type"_s, "click"_s);
+ reportDetails->setString("source_site"_s, m_sourceSite.registrableDomain.string());
+ reportDetails->setInteger("source_id"_s, m_sourceID.id);
+ reportDetails->setString("attributed_on_site"_s, m_attributeOnSite.registrableDomain.string());
+ reportDetails->setInteger("trigger_data"_s, m_attributionTriggerData->data);
+ reportDetails->setInteger("version"_s, 1);
return reportDetails;
}
Modified: trunk/Tools/ChangeLog (270597 => 270598)
--- trunk/Tools/ChangeLog 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/Tools/ChangeLog 2020-12-09 21:24:40 UTC (rev 270598)
@@ -1,3 +1,18 @@
+2020-12-09 John Wilander <[email protected]>
+
+ PCM: Make JSON key names use underscores according to the W3C conversation
+ https://bugs.webkit.org/show_bug.cgi?id=219696
+ <rdar://problem/72143642>
+
+ Reviewed by Brent Fulgham.
+
+ Further discussion in https://github.com/privacycg/private-click-measurement/issues/30
+ concluded that the JSON report should use underscores in its keys instead of dashes.
+ This patch makes that change and shortens the "report_version" key to just "version".
+
+ * TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp:
+ (TestWebKitAPI::TEST):
+
2020-12-09 Alex Christensen <[email protected]>
Make PDFHUD.MoveIFrame API test more robust
Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp (270597 => 270598)
--- trunk/Tools/TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp 2020-12-09 20:55:17 UTC (rev 270597)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp 2020-12-09 21:24:40 UTC (rev 270598)
@@ -50,7 +50,7 @@
ASSERT_EQ(attributionURL.string(), "https://webkit.org/.well-known/private-click-measurement/");
- ASSERT_EQ(attribution.json()->toJSONString(), "{\"source-engagement-type\":\"click\",\"source-site\":\"webkit.org\",\"source-id\":0,\"attributed-on-site\":\"example.com\",\"trigger-data\":0,\"report-version\":1}");
+ ASSERT_EQ(attribution.json()->toJSONString(), "{\"source_engagement_type\":\"click\",\"source_site\":\"webkit.org\",\"source_id\":0,\"attributed_on_site\":\"example.com\",\"trigger_data\":0,\"version\":1}");
}
TEST(PrivateClickMeasurement, ValidMidValues)
@@ -62,7 +62,7 @@
ASSERT_EQ(attributionURL.string(), "https://webkit.org/.well-known/private-click-measurement/");
- ASSERT_EQ(attribution.json()->toJSONString(), "{\"source-engagement-type\":\"click\",\"source-site\":\"webkit.org\",\"source-id\":192,\"attributed-on-site\":\"example.com\",\"trigger-data\":9,\"report-version\":1}");
+ ASSERT_EQ(attribution.json()->toJSONString(), "{\"source_engagement_type\":\"click\",\"source_site\":\"webkit.org\",\"source_id\":192,\"attributed_on_site\":\"example.com\",\"trigger_data\":9,\"version\":1}");
}
TEST(PrivateClickMeasurement, ValidMaxValues)
@@ -74,7 +74,7 @@
ASSERT_EQ(attributionURL.string(), "https://webkit.org/.well-known/private-click-measurement/");
- ASSERT_EQ(attribution.json()->toJSONString(), "{\"source-engagement-type\":\"click\",\"source-site\":\"webkit.org\",\"source-id\":255,\"attributed-on-site\":\"example.com\",\"trigger-data\":15,\"report-version\":1}");
+ ASSERT_EQ(attribution.json()->toJSONString(), "{\"source_engagement_type\":\"click\",\"source_site\":\"webkit.org\",\"source_id\":255,\"attributed_on_site\":\"example.com\",\"trigger_data\":15,\"version\":1}");
}
TEST(PrivateClickMeasurement, EarliestTimeToSendAttributionMinimumDelay)