<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>246358</bug_id>
          
          <creation_ts>2022-10-11 12:34:17 -0700</creation_ts>
          <short_desc>Test re-sync: [macOS WK1] imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub.html is frequently failing</short_desc>
          <delta_ts>2022-10-12 15:58:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=246351</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=239568</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>rreno</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1904848</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-10-11 12:34:17 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub.html is frequently failing on macOS WK1 bots after the re-sync in https://commits.webkit.org/255124@main

--- /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK1-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub-expected.txt
+++ /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK1-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub-actual.txt
@@ -3,5 +3,5 @@
 PASS Test that image does not load
 PASS Event is fired
 FAIL Report is observable to ReportingObserver assert_equals: expected 53 but got 0
-PASS Violation report status OK.
+FAIL Violation report status OK. undefined is not an object (evaluating &apos;data[0][&quot;body&quot;]&apos;)
 
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fcontent-security-policy%2Freporting-api%2Freporting-api-sends-reports-on-violation.https.sub.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904849</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-11 12:35:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/101045517&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904850</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-10-11 12:35:45 -0700</bug_when>
    <thetext>Seeing a similar failure with another WPT test in https://bugs.webkit.org/show_bug.cgi?id=246351, probably related?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904851</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-10-11 12:41:33 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5240</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904852</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-10-11 12:44:34 -0700</bug_when>
    <thetext>Test gardening commit 255395@main (4900b6842429): &lt;https://commits.webkit.org/255395@main&gt;

Reviewed commits have been landed. Closing PR #5240 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904861</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Reno">rreno</who>
    <bug_when>2022-10-11 13:01:02 -0700</bug_when>
    <thetext>Unfortunate this is flaky on WK1. The part that is failing is in an async defer &lt;script&gt; tag. Is that feature well supported on WK1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904879</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-10-11 13:40:01 -0700</bug_when>
    <thetext>Looks like this may also apply to imported/w3c/web-platform-tests/content-security-policy/reporting-api/report-to-directive-allowed-in-meta.https.sub.html, which was updated in the same re-sync:

--- /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK1-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/report-to-directive-allowed-in-meta.https.sub-expected.txt
+++ /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK1-Tests/build/layout-test-results/imported/w3c/web-platform-tests/content-security-policy/reporting-api/report-to-directive-allowed-in-meta.https.sub-actual.txt
@@ -3,5 +3,5 @@
 PASS Test that image does not load
 PASS Event is fired
 FAIL Report is observable to ReportingObserver assert_equals: expected 54 but got 0
-FAIL Violation report status OK. undefined is not an object (evaluating &apos;data[0][&quot;body&quot;]&apos;)
+PASS Violation report status OK.
 

https://results.webkit.org/?suite=layout-tests&amp;test=imported/w3c/web-platform-tests/content-security-policy/reporting-api/report-to-directive-allowed-in-meta.https.sub.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904951</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-10-11 17:10:04 -0700</bug_when>
    <thetext>Yeah, both the failures are happening in the &apos;checkReport.sub.js&apos; script. I don&apos;t think the &apos;async defer&apos; bits are relevant, because they would only impact the timing of the page being fully parsed/constructed (whether it waits for this script to load first).

Since the script runs an XHR, and continues when that XHR receives data, it seems like it should be resilient to timing differences.

However, this test failure makes it seem like the XHR completes (without error), but contains no data.

It&apos;s like the WPT Stash thing is sometimes returning an empty value, but is not treating that as an error state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904952</commentid>
    <comment_count>8</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-10-11 17:10:24 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #7)
&gt; Yeah, both the failures are happening in the &apos;checkReport.sub.js&apos; script. I
&gt; don&apos;t think the &apos;async defer&apos; bits are relevant, because they would only
&gt; impact the timing of the page being fully parsed/constructed (whether it
&gt; waits for this script to load first).
&gt; 
&gt; Since the script runs an XHR, and continues when that XHR receives data, it
&gt; seems like it should be resilient to timing differences.
&gt; 
&gt; However, this test failure makes it seem like the XHR completes (without
&gt; error), but contains no data.
&gt; 
&gt; It&apos;s like the WPT Stash thing is sometimes returning an empty value, but is
&gt; not treating that as an error state.

Details: https://web-platform-tests.org/tools/wptserve/docs/stash.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>