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 Loading | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/182830329>
Ian Gower
Pull request: https://github.com/WebKit/WebKit/pull/70064
Ian Gower
Pull request: https://github.com/WebKit/WebKit/pull/70361