← v157/web-bluetooth-make-bluetoothremotegattserver-an-eventtarget · conformance
critique · rev 1
v157/web-bluetooth-make-bluetoothremotegattserver-an-eventtarget
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | info | IDL quoted verbatim from the PR #672 head 0d80357 (cloned and diffed against main 2e451c1, 2026-11-15); EventTarget IDL verbatim from dom.spec.whatwg.org; Chromium IDL on main read (': EventTarget' unconditional, maxWriteWithoutResponseSize members gated by RuntimeEnabled=WebBluetoothMaxWriteWithoutResponseSize); CL 8363084 commit message and patch read (InterfaceName, GetExecutionContext via device_, global-interface-listing + idlharness expectation updates). Bluetooth-tree non-membership read from the spec. Score 4, not 5: no Chrome build containing the change was available to execute the examples. |
| milestone-mapping | 3/5 | minor | Feature 5138797158334464 appears in the milestone=157 listing under 'Enabled by default' with the listing name used as H1, so the route is correct per the listing rule. However CL 8363084 merged at main@{#1743596} (2026-11-13), after the M157 (#1717349), M158 (#1727472) and M159 (#1739869) branch points per chromiumdash fetch_milestones; recorded on-page in the #shipping-note warn-block. Merge-back to a release branch was not checked. |
| completeness | 4/5 | info | Inventory = inheritance contract + 3 inherited methods, each with a stable child route covering all nine dimensions (reference-contract.json, validate-artifacts PASS). Pre-existing members and the separately shipped maxWriteWithoutResponseSize/onmaxwritewithoutresponsesizechanged are listed in outOfScope with rationale. |
| explanation-quality | 4/5 | info | Lifecycle section explains the non-obvious consequences: device.gatt is the same object so listeners survive reconnects; the server is not in the Bluetooth tree so nothing propagates; gattserverdisconnected stays on BluetoothDevice; until the maxwrite feature ships nothing UA-fired targets the server. |
| examples | 4/5 | minor | Overview: feature detection, connect-and-listen, synthetic CustomEvent bus with AbortSignal; each child page has a complete example. Examples are written against IDL and not executed against a containing Chrome build or real BLE hardware (stated on-page). Local Chrome for Testing 153 probe (with --enable-experimental-web-platform-features) showed the pre-change chain: parent Object, Illegal constructor. |
| browser-compat-fallbacks | 4/5 | info | Compat tables from BCD api/BluetoothRemoteGATTServer.json and api/EventTarget.json fetched raw 2026-11-15; no BCD key for the inheritance itself, so that column is labelled interim ChromeStatus data with the branch-point caveat. Baseline banner = 'Limited availability' matching api.webstatus.dev/v1/features/web-bluetooth (baseline.status limited). WebView/iOS discrepancy with ChromeStatus platforms noted. |
| links-validity | 4/5 | minor | All source labels link directly. HEAD-checked 200 on 2026-11-15: chromestatus, bluetooth.spec.whatwg.org (+anchors verified), PR preview (+anchors), dom.spec anchors, webidl anchor, CL 8363084, issues.chromium.org/40265040, blink-dev intent, webstatus.dev, MDN, bugzil.la, webkit.org/b. github.com URLs (PR #672, standards-positions, BCD blob, WPT) return 403 through the session proxy and were not re-verified as pages; PR content was verified via git fetch of refs/pull/672/head. |
| accessibility | 4/5 | info | Single h1 per page; h2/h3 outline with ids; baseline banner role=note + aria-label; tables use thead/tbody, scope=col/row headers, caption on the compat table; scrollable .table-wrap regions have tabindex=0, role=region and an accessible name plus a visible focus outline; iframe has title + figcaption; external links target=_blank rel=noopener. |
| responsive-ux | 4/5 | info | Playwright 1280x800 and 360x740 DPR 2-3 on all four routes: documentElement overflow 0, no console errors. First pass showed browser names breaking mid-word in the mobile compat table; fixed with a 34rem scroll minimum inside the focusable region and normal wrapping for row headers. Screenshots read: scratchpad/shots/mobile-compatibility.png, mobile-members.png, mobile-shipping-note.png, mobile-figureexample-embed.png, desktop-figureexample-embed.png. |
| showcase-demo-relationship | 5/5 | info | CPS feature route and all four concepts (prototype-chain-probe, live-server-events, migration-listener-map, reconnect-lifecycle) HEAD 200 on 2026-11-15. Embedded prototype-chain-probe (hardware-free, demonstrates exactly this contract); screenshot shows it rendering inside the iframe at both widths. conformance.json cpsFeature references the CPS conformance route. |
modern-web-guidance consulted
- responsive data table browser compatibility on mobile without horizontal page overflow — Keep semantic table/thead/tbody/th; wrap in a scroll container with tabindex=0, role=region and an accessible name; keep cells legible rather than shrinking columns. (Applied: every table is in a .table-wrap with tabindex/role/aria-label (compat table uses aria-labelledby its caption); header cells use scope; multi-column tables get a 34rem min-width so they scroll inside the region instead of breaking words. Exception: no sticky headers or stacked layout, because the tables are short (at most 7 rows).)
- embedding third-party iframe demo lazy loading sandbox in documentation page — Minimise what third-party embeds receive; control referrer and capabilities of cross-origin content. (Applied: showcase iframe carries sandbox="allow-scripts allow-same-origin" and referrerpolicy="strict-origin-when-cross-origin" per the gendn iframe posture.)
- embedding third-party iframe demo lazy loading sandbox in documentation page — Defer offscreen heavy embeds so they do not compete with initial render. (Applied: iframe uses loading="lazy" and sits below the code examples.)
- accessible status banner note landmark baseline — Use semantic HTML first; give non-landmark notes an accessible name; ensure visible focus for keyboard-scrollable regions. (Applied: baseline banner role=note with aria-label; :focus-visible outline on .table-wrap using a CSS variable.)
open questions
- Which Chrome release actually contains CL 8363084? ChromeStatus says 157; the merge position (#1743596) is after the M159 branch point. A merge-back was not checked.
- Spec PR #672 is approved but unmerged; the published Web Bluetooth draft still declares BluetoothRemoteGATTServer without a parent.
- ChromeStatus lists WebView and iOS 157, but BCD records no WebView support for BluetoothRemoteGATTServer and Chrome on iOS has no Web Bluetooth.
- The examples were not executed against a build containing the change or against real BLE hardware.
follow-up goals
- [high · targeted-fix] Confirm the first Chrome release containing CL 8363084 (check merge-backs / first stable with the prototype chain) and update the shipping note and compat tables.
- [medium · targeted-fix] When WebBluetoothCG PR #672 merges, re-verify the quoted IDL against the published spec and update the specifications table.
- [medium · targeted-fix] Run the overview examples in a Chrome build containing the change (prototype checks, synthetic dispatch) and record observed results.