Bug 251889 - [ iOS , macOS ] imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub.html is a constant failure.
Summary: [ iOS , macOS ] imported/w3c/web-platform-tests/content-security-policy/repor...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Bri Harris
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-07 16:01 PST by Bri Harris
Modified: 2024-03-21 20:32 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bri Harris 2023-02-07 16:01:09 PST
imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub.html	

is a flaky crash on iOS and a constant failure on macOS.

HISTORY:

https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fcontent-security-policy%2Freporting-api%2Freporting-api-works-on-frame-ancestors.https.sub.html



I was able to replicate this failure on both iOS and Ventura ToT as follows:

run-webkit-tests imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub.html	



No crash log was available on the results or locally.
Comment 1 Radar WebKit Bug Importer 2023-02-07 16:01:34 PST
<rdar://problem/105151147>
Comment 2 Bri Harris 2023-02-07 16:05:33 PST
It appears this test has been failing since it was resynced at 239597@main.
Comment 3 Bri Harris 2023-02-07 16:14:05 PST
Pull request: https://github.com/WebKit/WebKit/pull/9785
Comment 4 EWS 2023-02-07 16:18:21 PST
Test gardening commit 259986@main (82da0aa13ec0): <https://commits.webkit.org/259986@main>

Reviewed commits have been landed. Closing PR #9785 and removing active labels.
Comment 5 Ryan Haddad 2023-02-10 13:37:40 PST
The crashes were resolved with https://commits.webkit.org/259993@main, but the test is still consistently failing with the following diff:

--- /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub-expected.txt
+++ /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub-actual.txt
@@ -1,5 +1,6 @@
+CONSOLE MESSAGE: Refused to load https://127.0.0.1:9443/content-security-policy/reporting-api/support/non-embeddable-frame.html?id=67c557ff-c132-4209-8ba7-e2a97031fd85 because it does not appear in the frame-ancestors directive of the Content Security Policy.
 
 
 FAIL Violation report status OK. undefined is not an object (evaluating 'data[0]["body"]')
-PASS No report to parent.
+FAIL No report to parent. assert_equals: CSP report sent, but not expecting one. expected 0 but got 1
Comment 6 Karl Rackler 2023-02-28 17:52:12 PST
updating test expectations
Comment 7 EWS 2023-02-28 17:59:28 PST
Test gardening commit 260980@main (477276fdc47a): <https://commits.webkit.org/260980@main>

Reviewed commits have been landed. Closing PR #10842 and removing active labels.