<?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>182624</bug_id>
          
          <creation_ts>2018-02-08 13:57:55 -0800</creation_ts>
          <short_desc>Switch http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html from testRunner.installStatisticsDidModifyDataRecordsCallback() to testRunner.installStatisticsDidScanDataRecordsCallback()</short_desc>
          <delta_ts>2018-02-12 16:09:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=182719</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="John Wilander">wilander</reporter>
          <assigned_to name="John Wilander">wilander</assigned_to>
          <cc>jlewis3</cc>
    
    <cc>lforschler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1397707</commentid>
    <comment_count>0</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2018-02-08 13:57:55 -0800</bug_when>
    <thetext>We should switch from testRunner.installStatisticsDidModifyDataRecordsCallback() to testRunner.installStatisticsDidScanDataRecordsCallback() in http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html to make it not be a flaky timeout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397708</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-02-08 13:58:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/37364749&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397712</commentid>
    <comment_count>2</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2018-02-08 14:00:50 -0800</bug_when>
    <thetext>Committed r228294: &lt;https://trac.webkit.org/changeset/228294&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398153</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-02-09 16:33:57 -0800</bug_when>
    <thetext>Good news: the test isn&apos;t a flaky timeout anymore.

Bad news: it is a flaky failure.

--- /Volumes/Data/slave/highsierra-debug-tests-wk2/build/layout-test-results/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt
+++ /Volumes/Data/slave/highsierra-debug-tests-wk2/build/layout-test-results/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-actual.txt
@@ -27,13 +27,13 @@
 --------
 After removal, should receive no cookies.
 Did not receive cookie named &apos;firstPartyCookie&apos;.
-Did not receive cookie named &apos;thirdPartyCookie&apos;.
-Client-side document.cookie:
+Received cookie named &apos;thirdPartyCookie&apos;.
+Client-side document.cookie: thirdPartyCookie=value
 
 --------
 Frame: &apos;&lt;!--framePath //&lt;!--frame4--&gt;--&gt;&apos;
 --------
 After user interaction, should receive no cookies.
-Did not receive cookie named &apos;firstPartyCookie&apos;.
+Received cookie named &apos;firstPartyCookie&apos;.
 Did not receive cookie named &apos;thirdPartyCookie&apos;.
-Client-side document.cookie:
+Client-side document.cookie: firstPartyCookie=value

https://build.webkit.org/results/Apple%20High%20Sierra%20Debug%20WK2%20(Tests)/r228318%20(2007)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398170</commentid>
    <comment_count>4</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2018-02-09 17:08:12 -0800</bug_when>
    <thetext>I think I understand why this happens. This is down to flakiness of cookies. Earlier, we sometimes didn&apos;t get the notification of data records removal so we timed out. Now we instead wait for a notification of data records scanning which sometimes fires before removal has finished underneath us. So cookies are still there. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398519</commentid>
    <comment_count>5</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2018-02-12 15:59:21 -0800</bug_when>
    <thetext>Marked as flaky in https://trac.webkit.org/changeset/228403/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>