WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
323474
Add a way for tests to override a host's IP address space
https://bugs.webkit.org/show_bug.cgi?id=323474
Summary
Add a way for tests to override a host's IP address space
Ian Gower
Reported
2026-09-04 15:20:48 PDT
Local Network Access classifies a connection by the peer IP it actually resolved to, so every check depends on which address space the target lands in. Every server the layout test runner starts binds loopback, so determineIPAddressSpaceFromHost classifies all of them as Loopback, and the local and public arms of the check cannot be reached from a test. The imported WPT suite already assumes a hook exists: fetch/local-network-access/resources/support.sub.js asks for ports[http-local][0] and ports[http-public][0], which LayoutTests/imported/w3c/resources/config.json does not define, and every iframe.tentative variant fails today. Two pieces are needed: the extra server ports in the WPT config, and a testing-only override mapping a host or port to an IPAddressSpace for determineIPAddressSpaceFromHost to consult. Feature work for
https://wicg.github.io/local-network-access/
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-09-04 15:20:56 PDT
<
rdar://problem/186702010
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug