web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
280 stars 28 forks source link

HTTP(S) URLs for WebSocket #567

Closed annevk closed 7 months ago

annevk commented 11 months ago

Description

The WebSocket constructor required ws: and was: URLs for the longest time, preventing folks from using relative URLs. Which in turn led to a lot of clunky code trying to work around that.

This has been recently resolved in https://github.com/whatwg/websockets/pull/45 and quickly adopted by WebKit, but hasn't made its way to other engines yet. Perhaps Interop 2024 can help?

Specification

https://websockets.spec.whatwg.org

Open Issues

No response

Tests

https://wpt.fyi/results/websockets?label=master&label=experimental&aligned&q=path%3A%2Fwebsockets%2FCreate-http-urls.any.%20or%20path%3A%2Fwebsockets%2FCreate-invalid-urls.any.%20or%20path%3A%2Fwebsockets%2FCreate-non-absolute-url.any.%20or%20path%3A%2Fwebsockets%2FCreate-url-with-windows-1252-encoding.html (from https://github.com/web-platform-tests/wpt/pull/39955)

Current Implementations

Standards Positions

No response

Browser bug reports

Developer discussions

No response

Polls & Surveys

No response

Existing Usage

No response

Workarounds

No response

Accessibility Impact

No response

Privacy Impact

No response

Other

No response

CanadaHonk commented 7 months ago

Gecko has implemented this in latest Nightly, now passes all WPTs linked above.

dandclark commented 7 months ago

This proposal has been accepted as part of Interop 2024! On behalf of the entire Interop team, thank you for proposing it. You’ll be able to track progress on this topic throughout the year via the Interop 2024 dashboard.