← v157/expose-progressevent-in-service-workers · conformance
critique · rev 1
v157/expose-progressevent-in-service-workers
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | IDL verbatim from xhr.spec.whatwg.org #interface-progressevent; Blink exposure from progress_event.idl at main (base64 from gitiles); ProgressEventInServiceWorker status stable from runtime_enabled_features.json5; CL 8425503 MERGED 2026-10-13 (#1717288) via Gerrit REST; chromiumdash fetch_commit earliest 157.0.8103.0; ServiceWorkerGlobalScope Global=(Worker,ServiceWorker) from the SW spec, Firefox 140 and WebKit-7614 IDL. Every behavioural claim (TypeError on missing type / non-object init / NaN / Infinity, negative accepted, DataCloneError on structuredClone, strict-mode assignment TypeError, XMLHttpRequest still undefined in SW) runtime-verified in headless Chrome 153.0.8010.12, 157.0.8103.78 and 158.0.8127.18. |
| milestone-mapping | 5/5 | info | Feature id 5069584943153152 is in the live milestone=157 listing under 'Enabled by default'; slug derived from the listing name 'Expose ProgressEvent in service workers'; commit first landed in 157.0.8103.0 per Chromium Dash (157 branch point #1717349 > commit #1717288). |
| completeness | 5/5 | info | reference-contract.json claims implementation-sufficient over 6 inventory items (service-worker exposure, constructor, ProgressEventInit, lengthComputable, loaded, total) x 9 dimensions; attribute getter errors are not-applicable with a spec rationale (getter steps only return the initialized value). The whole IDL is documented locally, so readers do not need MDN. |
| explanation-quality | 4/5 | info | The page separates what changes (global binding) from what does not (no XHR, no automatic fetch progress events, events not serializable), covers Finch kill-switch semantics and polyfill-collision risk from the ChromeStatus compat notes, and explains the Content-Length vs decoded-bytes mismatch for compressed responses. |
| examples | 5/5 | info | The sw.js + page.html download-relay pair was run with the same logic in headless Chrome 153 (fallback path, native=false) and 157.0.8103.78 (native ProgressEvent), 400 kB body, progress+loadend received, 0 page errors (scratch test rt/ex). Constructor and feature-detection snippets are also included, and the showcase scope-probe concept iframe was confirmed to render. |
| browser-compat-fallbacks | 5/5 | info | Two tables: (1) SW exposure per browser with evidence and explicit unknowns (Edge unknown, Firefox/Safari first version unknown, Android/WebView from ChromeStatus not device-tested); (2) BCD raw api/ProgressEvent.json interface/member versions. The page notes that BCD worker_support still marks Chrome partial and records engine differences in loaded/total typing (double vs unsigned long long). |
| links-validity | 5/5 | info | Spec anchors confirmed present by grepping the fetched specs (#security-considerations, #suggested-names..., #concept-event-fire-progress, DOM #concept-event-constructor/#dictdef-eventinit/#dispatching-events, SW #serviceworkerglobalscope-interface). Intent links are resolved from ChromeStatus msgid redirects to canonical Google Groups threads. Showcase feature and 3 concept routes returned HTTP 200 on 2026-11-15. All external links use target=_blank rel=noopener. |
| accessibility | 5/5 | info | Single h1; id-anchored h2/h3; captioned tables with thead/scope; scrollable table wraps are keyboard-focusable role=region named via aria-labelledby with a visible focus outline; iframe has a descriptive title; Baseline banner role=note; only CSS variables are used (no raw hex). |
| responsive-ux | 5/5 | info | Playwright headless Chrome at 1280x800 and 360x740 DPR3 (isMobile+touch): scrollWidth equals clientWidth (1280/360), 0 console errors, 0 failed requests, and the chromestatus link is present. Screenshots read: scratchpad/shots/{desktop,mobile}-{top,examples,compatibility}.png. The SW compat table was adjusted to wrap on mobile after the first screenshot showed the evidence column clipped inside its scroller. |
| showcase-demo-relationship | 5/5 | info | The page embeds the own-feature concept route /v157/expose-progressevent-in-service-workers/scope-probe/ (HTTP 200, carries chromestatus 5069584943153152); the iframe rendered the Global-scope probe at both viewports. Sibling concepts scope-matrix and download-relay are linked. Note: the showcase index says the [Exposed] list was historically (Window,DedicatedWorker,SharedWorker); that describes Blink's IDL, while the spec has always said (Window,Worker). gendn states the spec form. |
modern-web-guidance consulted
- responsive browser compatibility data table on narrow mobile without page horizontal overflow — Semantic table with thead/th; wrapper with overflow:auto, tabindex=0, role=region and aria-labelledby the caption; keep cells legible instead of crushing columns. (Applied: compat and init tables wrapped in focusable role=region .table-wrap named by caption ids, thead/scope headers, focus-visible outline. The 3-column SW table wraps at 360px with min-widths on the browser/version columns; the 5-column BCD table keeps min-width 34rem and scrolls inside its region. Exception: no stacked card layout or sticky headers, because the tables are short (6 rows) and the shared house style uses scroll wraps.)
- lazy load embedded cross-origin iframe demo sandbox accessible title — Use loading=lazy for below-the-fold iframes with explicit width/height to avoid layout shift. (Applied: the showcase iframe is below the fold with loading=lazy, width=100% height=520, and the mandated sandbox/referrerpolicy pair.)
- lazy load embedded cross-origin iframe demo sandbox accessible title — title is the standard accessible name for iframe; use correct table elements with caption. (Applied: iframe title 'Live example — global-scope probe for ProgressEvent in a service worker'; all data tables have captions.)
open questions
- When BCD updates api.ProgressEvent.worker_support for Chrome 157 (dropping partial_implementation), the SW compat row's BCD note should be refreshed.
- Edge service-worker exposure is unverified; confirm once Edge 157 release data appears in BCD or via a runtime check.
- Which Safari release first shipped double-typed loaded/total? WebKit main has it; the WebKit-7614 release source did not.
follow-up goals
- [medium · targeted-fix] Re-check BCD api/ProgressEvent.json worker_support after the Chrome 157 update lands and replace the 'not yet updated' note with the BCD version.
- [low · targeted-fix] Verify Edge 157+ service-worker exposure (BCD or runtime) and replace the 'Unknown' Edge cell.