-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Reporting API] Test reports should go "Reporting-Endpoints" Endpoints #5216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reporting API] Test reports should go "Reporting-Endpoints" Endpoints #5216
Conversation
|
EWS run on previous version of this PR (hash dcf847b) |
|
Note: This is a WIP. New tests are not in this patch yet. |
dcf847b to
91819e1
Compare
|
EWS run on previous version of this PR (hash 91819e1) |
|
EWS run on previous version of this PR (hash ec7e620) |
ec7e620 to
5191a4c
Compare
|
EWS run on previous version of this PR (hash 5191a4c)
|
5191a4c to
4cc3cd2
Compare
|
EWS run on previous version of this PR (hash 4cc3cd2)
|
Where are the tests? |
4cc3cd2 to
e7ab03b
Compare
|
EWS run on previous version of this PR (hash e7ab03b) |
They should be in the PR now. |
e7ab03b to
1fb28ee
Compare
1fb28ee to
bda3b48
Compare
|
EWS run on previous version of this PR (hash bda3b48)
|
bda3b48 to
5ec0faa
Compare
|
EWS run on previous version of this PR (hash 5ec0faa)
|
5ec0faa to
3ff1d45
Compare
|
EWS run on previous version of this PR (hash 3ff1d45)
|
3ff1d45 to
149ecb0
Compare
|
EWS run on previous version of this PR (hash 149ecb0)
|
149ecb0 to
c5f5fec
Compare
|
EWS run on previous version of this PR (hash c5f5fec)
|
|
I'm skeptical of the API test failure, since the tests have been passing consistently in earlier patches, and I've only been adjusting DumpRenderTree and test cases, not engine code in recent updates. |
cdumez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor fixes.
...s/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.http.sub.html
Outdated
Show resolved
Hide resolved
.../imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.https.sub.html
Outdated
Show resolved
Hide resolved
c5f5fec to
dc0e2cc
Compare
|
EWS run on current version of this PR (hash dc0e2cc)
|
https://bugs.webkit.org/show_bug.cgi?id=244907 <rdar://problem/99666423> Reviewed by Chris Dumez. Test reports should be sent to any endpoints provided in a "Reporting-Endpoints" header. There also don't appear to be WPT that check this behavior. This patch implements this part of the spec, and adds tests. It also connects 'generateTestReport' to WebKitLegacy so we can exercise the code in DumpRenderTree. * LayoutTests/http/tests/security/contentSecurityPolicy: Rebasedlined tests. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.https.sub-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.https.sub.html: Added. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.https.sub.html.sub.headers: Added. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.http.sub-expected: Added. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.http.sub.html: Added. * LayoutTests/imported/w3c/web-platform-tests/reporting/generateTestReport-honors-endpoint.http.sub.html.sub.headers: Added. * LayoutTests/platform/gtk/TestExpectations: Mark http-based WPT as expected to fail. * LayoutTests/platform/mac-wk1/TestExpectations: Mark https-based WPT as expected to fail. * Source/WebCore/Modules/reporting/Report.cpp: (WebCore::Report::createReportFormDataForViolation): * Source/WebCore/Modules/reporting/Report.h: * Source/WebCore/Modules/reporting/ReportingScope.cpp: (WebCore::ReportingScope::generateTestReport): * Source/WebCore/Modules/reporting/TestReportBody.cpp: (WebCore::TestReportBody::createReportFormDataForViolation const): Deleted. * Source/WebCore/Modules/reporting/TestReportBody.h: * Source/WebCore/loader/CrossOriginEmbedderPolicy.cpp: (WebCore::sendCOEPInheritenceViolation): (WebCore::sendCOEPCORPViolation): * Source/WebCore/loader/CrossOriginOpenerPolicy.cpp: (WebCore::sendViolationReportWhenNavigatingToCOOPResponse): (WebCore::sendViolationReportWhenNavigatingAwayFromCOOPResponse): * Source/WebCore/page/csp/CSPViolationReportBody.cpp: (WebCore::CSPViolationReportBody::createReportFormDataForViolation const): * Source/WebCore/page/csp/CSPViolationReportBody.h: * Source/WebCore/page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::reportViolation const): * Source/WebKitLegacy/mac/WebView/WebFrame.mm (-[WebFrame _generateTestReport:withGroup:]): Added. * Source/WebKitLegacy/mac/WebView/WebFramePrivate.h * Tools/DumpRenderTree/TestRunner.cpp (generateTestReportCallback): Add support for 'generateTestReport'. (TestRunner::staticFunctions): Ditto. * Tools/DumpRenderTree/TestRunner.h * Tools/DumpRenderTree/mac/TestRunnerMac.mm (TestRunner::generateTestReport): Added. * Tools/DumpRenderTree/win/TestRunnerWin.cpp (TestRunner::generateTestReport): Added stub. Canonical link: https://commits.webkit.org/255845@main
dc0e2cc to
8ae6f49
Compare
|
Committed 255845@main (8ae6f49): https://commits.webkit.org/255845@main Reviewed commits have been landed. Closing PR #5216 and removing active labels. |
8ae6f49
dc0e2cc
🛠 mac🛠 wincairo🧪 gtk-wk2🧪 api-mac🧪 api-gtk🧪 mac-wk1🧪 mac-wk2🧪 mac-AS-debug-wk2🧪 mac-wk2-stress