-
Notifications
You must be signed in to change notification settings - Fork 526
Description
We currently use URLs like http://localhost-studio.code.org because we have internal logic that's keyed to what domain name you use. Alternatively we could use a URL like http://studio.code.org.localhost, which would give us a secure context and enable a number of modern web features, from SharedArrayBuffer to Service Workers and Web RTC.
The alternative way to get a secure context is to run as HTTPS in dev, but getting that working locally has been hard, and using an adhoc to do dev is pretty hard too. In actual practice, I think the burden of using https in local dev has meant we just don't use those features. For example, we are not using the most straightforward way to stop a python program because it uses SharedArrayBuffer: #60320
Here's a list of some modern web features we're missing out on that require a secure context:
- WebRTC
- MediaDevices.getUserMedia() (access camera and mic)
- Service Workers
- WebAssembly.compileStreaming()
- Geolocation API
- Notification API
- Payment Request API
- Credential Management API
- Web Bluetooth API
- WebUSB API
- Clipboard API (write access)
- Storage Access API
- Push API
- Permissions API
- SharedArrayBuffer
- Subresource Integrity (SRI)
- Performance.now() with high resolution