<?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>227918</bug_id>
          
          <creation_ts>2021-07-13 13:41:14 -0700</creation_ts>
          <short_desc>REGRESSION: [iOS] TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers is failing</short_desc>
          <delta_ts>2021-10-27 13:09:45 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>227524</dup_id>
          
          <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>ayumi_kojima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jbedard</cc>
    
    <cc>katherine_cheney</cc>
    
    <cc>tsavell</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>1776737</commentid>
    <comment_count>0</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-13 13:41:14 -0700</bug_when>
    <thetext>TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers

Is constantly failing on iOS 14 E Simulator.

History: https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers

==================

/Volumes/Data/worker/ios-simulator-14-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:842
Expected equality of these values:
1u
Which is: 1
[websiteDataRecords count]
Which is: 2

==================

https://build.webkit.org/#/builders/28/builds/2401/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1776738</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-13 13:41:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/80535625&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1776773</commentid>
    <comment_count>2</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-13 15:31:54 -0700</bug_when>
    <thetext>I was not able to reproduce the failure on my local machine with run-api-tests TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers --iOS-simulator</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1776790</commentid>
    <comment_count>3</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2021-07-13 16:08:28 -0700</bug_when>
    <thetext>I was able to reproduce this issue on the iOS tester machine with command:

run-api-tests --no-build --release --verbose --iphone-simulator TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers --iterations 10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777194</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-07-15 07:27:30 -0700</bug_when>
    <thetext>Disabled the test for now (to speed up EWS) in https://trac.webkit.org/changeset/279945/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777197</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-07-15 07:33:53 -0700</bug_when>
    <thetext>(In reply to ayumi_kojima from comment #2)
&gt; I was not able to reproduce the failure on my local machine with
&gt; run-api-tests
&gt; TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers
&gt; --iOS-simulator

That&apos;s a bit surprising, makes me wonder if this has something to do with some state on the simulated device.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777212</commentid>
    <comment_count>6</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2021-07-15 08:57:54 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #5)
&gt; (In reply to ayumi_kojima from comment #2)
&gt; &gt; I was not able to reproduce the failure on my local machine with
&gt; &gt; run-api-tests
&gt; &gt; TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers
&gt; &gt; --iOS-simulator
&gt; 
&gt; That&apos;s a bit surprising, makes me wonder if this has something to do with
&gt; some state on the simulated device.

The failure seems to indicate that there is more website data than expected when registering a service worker. Maybe that state isn&apos;t being cleared properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777214</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-07-15 09:14:51 -0700</bug_when>
    <thetext>(In reply to Kate Cheney from comment #6)
&gt; (In reply to Jonathan Bedard from comment #5)
&gt; &gt; (In reply to ayumi_kojima from comment #2)
&gt; &gt; &gt; I was not able to reproduce the failure on my local machine with
&gt; &gt; &gt; run-api-tests
&gt; &gt; &gt; TestWebKitAPI.InAppBrowserPrivacy.AppBoundDomainAllowsServiceWorkers
&gt; &gt; &gt; --iOS-simulator
&gt; &gt; 
&gt; &gt; That&apos;s a bit surprising, makes me wonder if this has something to do with
&gt; &gt; some state on the simulated device.
&gt; 
&gt; The failure seems to indicate that there is more website data than expected
&gt; when registering a service worker. Maybe that state isn&apos;t being cleared
&gt; properly.

I&apos;ll bet `run-api-tests TestWebKitAPI.InAppBrowserPrivacy --ios-simulator` will reproduce, in that case.

It&apos;s permissible, when running API tests, for tests in a single suite to be run in the same process, could that cause the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809395</commentid>
    <comment_count>8</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2021-10-27 13:03:54 -0700</bug_when>
    <thetext>This was almost surely fixed by https://bugs.webkit.org/show_bug.cgi?id=227524, where I added code to clear the data records between tests.

*** This bug has been marked as a duplicate of bug 227524 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809398</commentid>
    <comment_count>9</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2021-10-27 13:09:45 -0700</bug_when>
    <thetext>Unskipped test here: https://trac.webkit.org/changeset/284939/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>