Bug 319907

Summary: Add the Local Network Access check algorithm and a NetworkProcess-resident permission stub
Product: WebKit Reporter: Ian Gower <i_gower>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 250607    
Bug Blocks:    

Ian Gower
Reported 2026-07-21 11:02:43 PDT
Adds WebCore::performLocalNetworkAccessCheck(), implementing the spec's check algorithm: a same-origin/potentially-trustworthy exemption, an explicit targetAddressSpace opt-in/mismatch check, a general publicness comparison via IPAddressSpace's isLessPublicThan(), and a fail-closed result for non-secure contexts. Also adds a test-only permission stub (NetworkSession-resident, reachable via Internals) since no native permission prompt exists yet — a Prompt decision is treated as Denied until one does. Part of the Local Network Access enforcement work (meta bug 250607).
Attachments
Radar WebKit Bug Importer
Comment 1 2026-07-21 11:02:50 PDT
Ian Gower
Comment 2 2026-07-23 15:58:52 PDT
Ian Gower
Comment 3 2026-07-28 11:09:30 PDT
Note You need to log in before you can comment on or make changes to this bug.