forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=218634 <rdar://problem/70469923> Reviewed by Brent Fulgham. The standards conversation has landed in attribution reports in a JSON format as opposed to the currently implemented URL format. Discussion here: privacycg/private-click-measurement#30 Source/WebCore: No new tests. Existing layout and API tests were updated. * Headers.cmake: Added platform/network/HTTPHeaderValues.h to be able to expose it to WebKit. * WebCore.xcodeproj/project.pbxproj: Now exporting platform/network/HTTPHeaderValues.h. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::handleClick): Changed a function call from AdClickAttribution::url() to AdClickAttribution::reportURL(). * loader/AdClickAttribution.cpp: (WebCore::AdClickAttribution::reportURL const): The URL no longer carries the report values. Renamed from AdClickAttribution::url(). (WebCore::AdClickAttribution::json const): New function to generate and return the report JSON. (WebCore::AdClickAttribution::url const): Deleted. Renamed to AdClickAttribution::reportURL(). (WebCore::AdClickAttribution::referrer const): Deleted. The referrer is now part of the report JSON. (WebCore::AdClickAttribution::urlForTesting const): Deleted. This class no longer needs to help generate test URLs since report values are now in JSON. * loader/AdClickAttribution.h: * platform/network/FormData.h: Added export of create(const CString&). * platform/network/HTTPHeaderValues.cpp: (WebCore::HTTPHeaderValues::applicationJSONContentType): Used create the new JSON report request. * platform/network/HTTPHeaderValues.h: Added export of maxAge0(). Source/WebKit: * NetworkProcess/AdClickAttributionManager.cpp: (WebKit::AdClickAttributionManager::fireConversionRequest): Tools: * TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp: (TestWebKitAPI::TEST): LayoutTests: * http/tests/adClickAttribution/resources/conversionReport.php: * http/tests/adClickAttribution/send-attribution-conversion-request-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@269489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d3ca0f7
commit 39c86ce
Showing
16 changed files
with
155 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2020-11-05 John Wilander <[email protected]> | ||
|
||
PCM: Switch to JSON report format | ||
https://bugs.webkit.org/show_bug.cgi?id=218634 | ||
<rdar://problem/70469923> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
The standards conversation has landed in attribution reports in a JSON | ||
format as opposed to the currently implemented URL format. Discussion | ||
here: https://github.com/privacycg/private-click-measurement/issues/30 | ||
|
||
* http/tests/adClickAttribution/resources/conversionReport.php: | ||
* http/tests/adClickAttribution/send-attribution-conversion-request-expected.txt: | ||
|
||
2020-11-05 Chris Dumez <[email protected]> | ||
|
||
Expose referrerPolicy attribute on HTMLLinkElement and HTMLAreaElement | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
2020-11-05 John Wilander <[email protected]> | ||
|
||
PCM: Switch to JSON report format | ||
https://bugs.webkit.org/show_bug.cgi?id=218634 | ||
<rdar://problem/70469923> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
The standards conversation has landed in attribution reports in a JSON | ||
format as opposed to the currently implemented URL format. Discussion | ||
here: https://github.com/privacycg/private-click-measurement/issues/30 | ||
|
||
No new tests. Existing layout and API tests were updated. | ||
|
||
* Headers.cmake: | ||
Added platform/network/HTTPHeaderValues.h to be able to expose it | ||
to WebKit. | ||
* WebCore.xcodeproj/project.pbxproj: | ||
Now exporting platform/network/HTTPHeaderValues.h. | ||
* html/HTMLAnchorElement.cpp: | ||
(WebCore::HTMLAnchorElement::handleClick): | ||
Changed a function call from AdClickAttribution::url() to | ||
AdClickAttribution::reportURL(). | ||
* loader/AdClickAttribution.cpp: | ||
(WebCore::AdClickAttribution::reportURL const): | ||
The URL no longer carries the report values. | ||
Renamed from AdClickAttribution::url(). | ||
(WebCore::AdClickAttribution::json const): | ||
New function to generate and return the report JSON. | ||
(WebCore::AdClickAttribution::url const): Deleted. | ||
Renamed to AdClickAttribution::reportURL(). | ||
(WebCore::AdClickAttribution::referrer const): Deleted. | ||
The referrer is now part of the report JSON. | ||
(WebCore::AdClickAttribution::urlForTesting const): Deleted. | ||
This class no longer needs to help generate test URLs | ||
since report values are now in JSON. | ||
* loader/AdClickAttribution.h: | ||
* platform/network/FormData.h: | ||
Added export of create(const CString&). | ||
* platform/network/HTTPHeaderValues.cpp: | ||
(WebCore::HTTPHeaderValues::applicationJSONContentType): | ||
Used create the new JSON report request. | ||
* platform/network/HTTPHeaderValues.h: | ||
Added export of maxAge0(). | ||
|
||
2020-11-05 Brian Burg <[email protected]> | ||
|
||
[Cocoa] Inspector Extensions: Add _WKInspectorExtension and related plumbing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2020-11-05 John Wilander <[email protected]> | ||
|
||
PCM: Switch to JSON report format | ||
https://bugs.webkit.org/show_bug.cgi?id=218634 | ||
<rdar://problem/70469923> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
The standards conversation has landed in attribution reports in a JSON | ||
format as opposed to the currently implemented URL format. Discussion | ||
here: https://github.com/privacycg/private-click-measurement/issues/30 | ||
|
||
* NetworkProcess/AdClickAttributionManager.cpp: | ||
(WebKit::AdClickAttributionManager::fireConversionRequest): | ||
|
||
2020-11-05 Brian Burg <[email protected]> | ||
|
||
[Cocoa] Inspector Extensions: Add _WKInspectorExtension and related plumbing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2020-11-05 John Wilander <[email protected]> | ||
|
||
PCM: Switch to JSON report format | ||
https://bugs.webkit.org/show_bug.cgi?id=218634 | ||
<rdar://problem/70469923> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
The standards conversation has landed in attribution reports in a JSON | ||
format as opposed to the currently implemented URL format. Discussion | ||
here: https://github.com/privacycg/private-click-measurement/issues/30 | ||
|
||
* TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp: | ||
(TestWebKitAPI::TEST): | ||
|
||
2020-11-05 Brian Burg <[email protected]> | ||
|
||
[Cocoa] Inspector Extensions: Add _WKInspectorExtension and related plumbing | ||
|
Oops, something went wrong.