← back to v147 · local-network-access-restrictions-for-websockets
conformance · v147
v147 · local-network-access-restrictions-for-websockets — conformance probe
10 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
10
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
websocket-constructor |
The WebSocket constructor is exposed in the global scope. | exists | … | |
websocket-type |
WebSocket is a constructor function. | typeof | … | |
websocket-prototype-close |
WebSocket.prototype.close is exposed as a method. | typeof | … | |
websocket-prototype-send |
WebSocket.prototype.send is exposed as a method. | typeof | … | |
secure-context |
The LNA restriction requires secure contexts; the page should ideally be HTTPS or localhost. | script | … | |
permissions-api-exists |
navigator.permissions is exposed so userland can probe local-network permissions. | script | … | |
permissions-query-local-network |
navigator.permissions.query({name:'local-network'}) resolves to a PermissionStatus rather than rejecting. | script | … | |
websocket-readystate-enum |
WebSocket exposes the CONNECTING/OPEN/CLOSING/CLOSED constants so userland can observe connection state. | script | … | |
close-event-on-websocket |
CloseEvent is exposed to handle connection closures and PNA-gated network failures. | exists | … | |
ws-url-with-loopback-constructible |
Constructing a WebSocket with a loopback URL does not throw synchronously, verifying LNA gating happens during handshake. | script | … |