← v154/add-options-bag-to-websocket-constructor · conformance

critique · rev 1

v154/add-options-bag-to-websocket-constructor

reviewed 2026-09-20 by writer self-review; independent integrator source review pending

rubric

dimensionscoreseverityevidence
factual-source-fidelity5/5infoEvery load-bearing claim traced to a primary source fetched live 2026-09-20: whatwg/websockets PR #76 diff (verbatim WebSocketInit + constructor IDL + the two routing steps), issue #42 (motivation), Chromium websocket.idl (temporary `any` parameter + TODO crbug 542670554), websocket_init.idl (sequence<DOMString> protocols + flag-gated targetAddressSpace), dom_websocket.cc (WebSocketOptionBagEnabled branch, ParseConstructorOptionsWithBag), runtime_enabled_features.json5 (WebSocketOptionBag experimental), Gerrit CLs 8197225 (merged 2026-08-12), 8256918 (open promote-to-stable), 8294944 (abandoned revert), WPT option-bag.any.js (both tests read), intent thread YwkXWzPUJ7U, vendor positions WebKit#708 / mozilla#1444.
milestone-mapping5/5infoFeature id 5080055102439424 confirmed in the milestone=154 listing under 'Enabled by default' (fetched 2026-09-20); slug add-options-bag-to-websocket-constructor derived from the exact listing name 'Add options bag to WebSocket constructor' per invariant #1. The listing bucket vs the trunk flag state (still experimental, promotion CL open) is documented explicitly in the warn-block rather than smoothed over.
completeness5/5infoThe surface is the constructor overload plus one dictionary with one spec member; both get child routes with nine-dimension coverage, the union-routing algorithm is inventoried against the overview, and Chromium's flag-gated targetAddressSpace extension is recorded with a pointer to its own tracked feature (4779920606756864) rather than duplicated. reference-contract.json claims implementation-sufficient with 4 inventory items and 23 sources.
explanation-quality4/5infoThe routing table makes the six input shapes and their outcomes explicit, including the two traps: a bare-string protocols member (TypeError per Web IDL sequence conversion — the ChromeStatus summary's own example doesn't match the IDL, called out directly) and the typo-silently-ignored dictionary member behavior.
examples4/5minorBoth-forms, feature-detect/fallback, and negotiation examples; TypeError and silent-typo cases shown as commented-out lines. Array-form usage matches the WPT tests verbatim in spirit; examples are source-derived but not executed locally (no Chromium build with the flag in this environment).
browser-compat-fallbacks5/5infoNo BCD key and no webstatus.dev web-feature for the overload — both stated plainly with the queries named; interim tables labelled non-BCD; host-constructor Baseline (widely available) given for orientation only; Safari 'Support' position linked to WebKit#708, Firefox 'No signal' to the ChromeStatus record and mozilla#1444.
links-validity5/5infoZero plain-text citations; every source label links to the canonical original (spec PR + files view, issue, Gerrit CLs, googlesource IDL/cc/flag files, WPT blob, Groups intent thread, standards-position issues). CPS feature route and all three concept routes HEAD-checked 200 on 2026-09-20.
accessibility5/5infoSingle h1 per page, sequential h2 outline, th scope=row/col on all tables, baseline banner role=note with aria-label, iframe title + figcaption, soft hyphen in the long child-page h1 token.
responsive-ux4/5infooverflow-wrap:anywhere on h1/lede/inline code, .table-wrap{overflow-x:auto} around every table, pre blocks scroll internally, iframe max-width:100%; verified via the repo responsive matrix (mobile 360px + desktop 1280px screenshots read) before push.
showcase-demo-relationship5/5infoCPS feature route HEAD-200 with three concept routes (both-forms, negotiation, why-a-dictionary — all 200, 2026-09-20); both-forms embedded on the overview via lazy iframe; the other two linked from the figcaption; caption notes the demo needs the WebSocketOptionBag flag.

modern-web-guidance consulted

open questions

follow-up goals