← back to v160 · sharedworkerconnecteventemptystringdata
conformance · v160
v160 · sharedworkerconnecteventemptystringdata — conformance probe
8 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
8
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
sharedworker-constructor-exposed |
The SharedWorker constructor is exposed on Window (the only way to cause a connect event). spec ↗ | typeof | … | |
connect-data-is-empty-string |
The browser-fired connect event's data attribute is the empty string on the first connection (HTML run a worker). spec ↗ | script | … | |
connect-data-typeof-string |
typeof data on the connect event is "string", not "object" (i.e. not null). spec ↗ | script | … | |
existing-worker-connect-data-empty-string |
A second SharedWorker connecting to the already-running worker also receives a connect event whose data is the empty string (SharedWorker constructor, existing-worker branch). spec ↗ | script | … | |
connect-ports-single-frozen |
The connect event's ports attribute is a frozen array containing exactly one MessagePort. spec ↗ | script | … | |
connect-source-is-inside-port |
The connect event's source attribute is the same inside port as ports[0]. spec ↗ | script | … | |
connect-is-trusted-messageevent |
The connect event is a trusted, non-bubbling, non-cancelable MessageEvent of type "connect". spec ↗ | script | … | |
messageevent-constructor-default-data-null |
Only the browser-fired event changes: new MessageEvent('connect') still defaults data to null per MessageEventInit. spec ↗ | script | … |