<?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>194602</bug_id>
          
          <creation_ts>2019-02-13 11:24:37 -0800</creation_ts>
          <short_desc>[ Mac WK2 ] Layout Test http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html is a flaky failure</short_desc>
          <delta_ts>2019-04-19 16:45:30 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>194164</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=181601</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="Shawn Roberts">sroberts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>lforschler</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1505790</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-02-13 11:24:37 -0800</bug_when>
    <thetext>The following layout test is flaky on Mac WK2

http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html

Probable cause:

Is a flaky failure since r234440 when test was edited. 

Reproducible locally with:

run-webkit-tests t234440 http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html --iterations 500 -f --exit-after-n-failures=1 --no-retry-failures

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2FstorageAccess%2Frequest-and-grant-access-then-detach-should-not-have-access.html

Diff:

--- /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-actual.txt
@@ -1,12 +1,5 @@
-Tests that a cross-origin iframe from a prevalent domain that is granted storage access and then is detached from the DOM does not have storage access.
+#PID UNRESPONSIVE - com.apple.WebKit.WebContent.Development (pid 37845)
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-PASS Storage access was granted. document.cookie == firstPartyCookie=value, cookies seen server-side == {&quot;firstPartyCookie&quot;:&quot;value&quot;}
-PASS There is a storage access entry for localhost.
-PASS There is no storage access entry for localhost after iframe detach.
-PASS successfullyParsed is true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505795</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-13 11:28:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/48045653&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514027</commentid>
    <comment_count>2</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-03-08 09:29:21 -0800</bug_when>
    <thetext>Additional repro steps

Searched trac for changes to http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html

Found test was last edited on https://trac.webkit.org/changeset/234440/webkit

Used this revision as the bisecting point.

Started with newest available revision r242640 --iterations 500 -f --exit-after-n-failures=1 --no-retry-failures
Results : 2 tests ran as expected, 1 didn&apos;t (497 didn&apos;t run):
Regressions: Unexpected text-only failures (1)
  http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html [ Failure ]


Ran same test configuration with revision 234440 --iterations 500 -f --exit-after-n-failures=1 --no-retry-failures
Results : 3 tests ran as expected, 1 didn&apos;t (496 didn&apos;t run):
Regressions: Unexpected text-only failures (1)
  http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html [ Failure ]


Finally ran tests with revision 234439 --iterations 500 -f --exit-after-n-failures=50
Results : 
0 tests ran as expected, 50 didn&apos;t (450 didn&apos;t run):
Regressions: Unexpected timeouts (1)
  http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html [ Timeout ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523922</commentid>
    <comment_count>3</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-04-03 14:20:03 -0700</bug_when>
    <thetext>Correction, code changed in 234440. 

Test was originally added in https://trac.webkit.org/changeset/226235/webkit and has likely been a flaky failure prior to r234440</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528953</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-19 16:45:30 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 194164 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>