<?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>254938</bug_id>
          
          <creation_ts>2023-04-03 13:13:49 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 16.4): Our page crashes on page load due to service workers</short_desc>
          <delta_ts>2023-04-11 19:50:12 -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>Service Workers</component>
          <version>Safari 16</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>245425</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesper van den Ende">jespertheend</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>jespertheend</cc>
    
    <cc>karlcow</cc>
    
    <cc>peter.elliott</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1946291</commentid>
    <comment_count>0</comment_count>
    <who name="Jesper van den Ende">jespertheend</who>
    <bug_when>2023-04-03 13:13:49 -0700</bug_when>
    <thetext>Since iOS 16.4 was released we started getting reports that our site crashes on page load.
After trial and error I managed to find out that it was the service worker causing this.
Though I&apos;m not sure what exactly it is that makes our page crash, since other sites with a service worker seem fine.
That said our service worker does not seem that complex: https://narrow.one/js/sw.js

For now I have disabled the service worker in production using `navigator.userAgent.includes(&quot;AppleWebKit/605.1.15&quot;)`,
but it can be enabled using /?serviceWorker=true.

So the steps to reproduce are:
1. Visit https://narrow.one/?serviceWorker=true
2. Wait a few seconds for the service worker to install
3. Reload the page.

I&apos;ve verified these steps on both iOS/Safari, iOS/Chrome and macOS/Safari.

I hope that helps. Let me know if you have any questions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946479</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-04 02:11:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/107602025&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946524</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-04-04 09:32:56 -0700</bug_when>
    <thetext>Reproduces on macOS too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946565</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Elliott">peter.elliott</who>
    <bug_when>2023-04-04 12:21:15 -0700</bug_when>
    <thetext>appears to reproduce in 16.5 beta on macOS, but not in safari technology preview 166</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946663</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-04-04 20:09:45 -0700</bug_when>
    <thetext>After running regression testing
This has been regressed by https://github.com/WebKit/WebKit/commit/599d00ac6774a1c036faa6f6adf3f96fb95d337f

Bug 245425</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946807</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-04-05 13:04:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12418</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947010</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-06 08:48:00 -0700</bug_when>
    <thetext>Committed 262666@main (96af04c5e6b2): &lt;https://commits.webkit.org/262666@main&gt;

Reviewed commits have been landed. Closing PR #12418 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948116</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-11 19:50:12 -0700</bug_when>
    <thetext>Committed 259548.632@safari-7615-branch (e727241d7c3d): &lt;https://commits.webkit.org/259548.632@safari-7615-branch&gt;

Reviewed commits have been landed. Closing PR #542 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>