<?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>319908</bug_id>
          
          <creation_ts>2026-07-21 11:02:56 -0700</creation_ts>
          <short_desc>Wire the Local Network Access check into NetworkResourceLoader for both final responses and redirects</short_desc>
          <delta_ts>2026-07-31 16:36:29 -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>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>250607</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian Gower">i_gower</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2232444</commentid>
    <comment_count>0</comment_count>
    <who name="Ian Gower">i_gower</who>
    <bug_when>2026-07-21 11:02:56 -0700</bug_when>
    <thetext>Wires WebCore::performLocalNetworkAccessCheck() (added in a prior patch) into NetworkResourceLoader at the two points where a load&apos;s resolved-connection address space becomes known: the final response and each redirect hop, since redirects don&apos;t flow through didReceiveResponse and could otherwise bypass the check entirely. Threads the requesting document&apos;s address space and secure-context status from WebProcess into NetworkProcess to support this. Adds a WebKitCocoa API test against the real Cocoa network stack and a layout test using the permission-stub testing hook. Part of the Local Network Access enforcement work (meta bug 250607).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2232446</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-07-21 11:03:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/182830246&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2236154</commentid>
    <comment_count>2</comment_count>
    <who name="Ian Gower">i_gower</who>
    <bug_when>2026-07-31 16:36:29 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/70639</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>