Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP(S) URLs for WebSocket #567

Closed
1 of 3 tasks
annevk opened this issue Oct 6, 2023 · 2 comments
Closed
1 of 3 tasks

HTTP(S) URLs for WebSocket #567

annevk opened this issue Oct 6, 2023 · 2 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@annevk
Copy link
Member

annevk commented Oct 6, 2023

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 whatwg/websockets#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 web-platform-tests/wpt#39955)

Current Implementations

  • Blink
  • Gecko
  • WebKit

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

@annevk annevk added the focus-area-proposal Focus Area Proposal label Oct 6, 2023
@CanadaHonk
Copy link
Member

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

@dandclark
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
3 participants