<?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>256893</bug_id>
          
          <creation_ts>2023-05-17 06:27:14 -0700</creation_ts>
          <short_desc>Make sure to run a service worker before firing its activate event</short_desc>
          <delta_ts>2023-06-25 15:10:20 -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>WebKit Local 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=258021</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=258502</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="youenn fablet">youennf</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>fujii</cc>
    
    <cc>twisniewski</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1955896</commentid>
    <comment_count>0</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-17 06:27:14 -0700</bug_when>
    <thetext>Make sure to run a service worker before firing its activate event</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955897</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-17 06:27:31 -0700</bug_when>
    <thetext>&lt;rdar://109411104&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955900</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-17 06:37:13 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956414</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-19 02:07:36 -0700</bug_when>
    <thetext>Committed 264242@main (ff4eced3ff23): &lt;https://commits.webkit.org/264242@main&gt;

Reviewed commits have been landed. Closing PR #13961 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960418</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Wisniewski [:twisniewski]">twisniewski</who>
    <bug_when>2023-06-07 14:09:09 -0700</bug_when>
    <thetext>Has the new WPT in this patch been sent to be synced upstream? I&apos;m not seeing it on wpt.fyi or wpt.live.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960423</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Wisniewski [:twisniewski]">twisniewski</who>
    <bug_when>2023-06-07 14:16:51 -0700</bug_when>
    <thetext>(I also note that `withIframe` isn&apos;t defined in the test itself, so it would be good to fix that before sending a PR).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961312</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-06-13 06:22:12 -0700</bug_when>
    <thetext>(In reply to Thomas Wisniewski [:twisniewski] from comment #4)
&gt; Has the new WPT in this patch been sent to be synced upstream? I&apos;m not
&gt; seeing it on wpt.fyi or wpt.live.

The test is in LayoutTests/http/wpt so it is separate from wpt.fyi.
I guess we could upstream it though to help other browsers.
Would that be of interest?

withIFrame is defined in a JS file in wpt repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961318</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Wisniewski [:twisniewski]">twisniewski</who>
    <bug_when>2023-06-13 06:47:15 -0700</bug_when>
    <thetext>Ah I see, thanks for the explanation!

Yes, it would be great to have as much coverage in WPTs as possible instead of browser-specific test infrastructure, so that we can all ensure interop. Even where it isn&apos;t currently possible (due to lacking low-level APIs and such), it would be good to let the WPT team know what&apos;s missing to make it possible eventually.

This doesn&apos;t have to be a high priority of course, but every little bit helps (especially with interop202x [1] being a thing; the better our coverage now, the less likely service workers will become a future focus area in that project).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>