<?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>287506</bug_id>
          
          <creation_ts>2025-02-11 12:58:12 -0800</creation_ts>
          <short_desc>[ResourceMonitor] Track network usage of ServiceWorker.</short_desc>
          <delta_ts>2025-02-27 15:03:19 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Basuke Suzuki">basuke</reporter>
          <assigned_to name="Basuke Suzuki">basuke</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2093916</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2025-02-11 12:58:12 -0800</bug_when>
    <thetext>We don&apos;t track network usage of ServiceWorker registered by iframe and also there&apos;s no direct connection
between ServiceWorker and iframe right now. To monitor network usage, send IPC message to report
network usage of ServiceWorker to all connected iframe document.

To make this happen:
1. Add new parameter, `workerIdentifier` in NetworkResourceLoadParameters.
2. Report network usage of the SharedWorker from NetworkResourceLoader to connected SharedWorker objects.
3. Tell ResourceMonitor to treate those usage as part of the resource usage of iframe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093917</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2025-02-11 12:58:46 -0800</bug_when>
    <thetext>rdar://144586530

Not SharedWorker, but ServiceWorker in the description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2098134</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2025-02-25 21:16:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/41375</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2098963</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-27 15:03:17 -0800</bug_when>
    <thetext>Committed 291262@main (ab04d94a385b): &lt;https://commits.webkit.org/291262@main&gt;

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

    </bug>

</bugzilla>