Closed Bug 2064045 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 61985 - Support targetAddressSpace in WebSocket constructor

Categories

(Core :: Networking: WebSockets, task, P4)

task

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 61985 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/61985
Details from upstream follow.

Chris Thompson <cthomp@chromium.org> wrote:

Support targetAddressSpace in WebSocket constructor

This CL adds support for the targetAddressSpace option in the WebSocket
constructor's option bag, guarded by the
LocalNetworkAccessWebSocketsTargetAddressSpace runtime feature.

The target address space is propagated to the network service's
WebSocket implementation, where it is used to perform Local Network
Access (LNA) checks. Web platform tests and unit tests are added to
verify the new functionality.

ChromeStatus entry: https://chromestatus.com/feature/4779920606756864

Intent-to-Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/hVlq3XXExbU/m/FqxRLh0yBwAJ

TAG=agy
CONV=d49fff98-9ad5-4ac6-8a3f-c6022b98b1f9
Bug: 517413738
Binary-Size: Generated base::Feature in features_generated.cc false-positive on mutable constants check.
Change-Id: I9cff805719e3817d71fa12dbafaa3f086a7bbc48
Reviewed-on: https://chromium-review.googlesource.com/8191301
WPT-Export-Revision: 8438f01721e56ff95456fd850008b58b3db75d88

Component: web-platform-tests → Networking: WebSockets
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 59 tests and 6 subtests

Status Summary

Firefox

OK : 4[GitHub] 59[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 544
FAIL: 24

Chrome

OK : 4
FAIL: 24

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /websockets/constructor/target-address-space.any.worker.html?wss [wpt.fyi]
    • WebSocket constructor with matching targetAddressSpace 'loopback' succeeds: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'private' throws TypeError as it is an unsupported legacy alias: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'local' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'public' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'unknown' throws TypeError: FAIL (Chrome: FAIL)
    • WebSocket constructor with invalid targetAddressSpace throws TypeError: FAIL (Chrome: FAIL)
  • /websockets/constructor/target-address-space.any.html?wss [wpt.fyi]
    • WebSocket constructor with matching targetAddressSpace 'loopback' succeeds: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'private' throws TypeError as it is an unsupported legacy alias: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'local' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'public' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'unknown' throws TypeError: FAIL (Chrome: FAIL)
    • WebSocket constructor with invalid targetAddressSpace throws TypeError: FAIL (Chrome: FAIL)
  • /websockets/constructor/target-address-space.any.html?default [wpt.fyi]
    • WebSocket constructor with matching targetAddressSpace 'loopback' succeeds: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'private' throws TypeError as it is an unsupported legacy alias: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'local' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'public' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'unknown' throws TypeError: FAIL (Chrome: FAIL)
    • WebSocket constructor with invalid targetAddressSpace throws TypeError: FAIL (Chrome: FAIL)
  • /websockets/constructor/target-address-space.any.worker.html?default [wpt.fyi]
    • WebSocket constructor with matching targetAddressSpace 'loopback' succeeds: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'private' throws TypeError as it is an unsupported legacy alias: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'local' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with mismatched targetAddressSpace 'public' fails connection: FAIL (Chrome: FAIL)
    • WebSocket constructor with targetAddressSpace 'unknown' throws TypeError: FAIL (Chrome: FAIL)
    • WebSocket constructor with invalid targetAddressSpace throws TypeError: FAIL (Chrome: FAIL)
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
You need to log in before you can comment on or make changes to this bug.