demo · v146
Reload counter trace
A file-handling PWA on the left, simulated under the old behaviour, gets the same file handed to it again every time the user hits reload — duplicating its document list. On the right, 146 fixes the bug: launchParams arrive exactly once, reload does nothing extra. Press reload, press load-new-file, watch the counts.
Behaviour change: in 146, when a PWA reloads it no longer re-receives the
launchQueue entries from the original launch. This simulator drives the two
behaviours side by side so the difference is visible without installing a PWA.
Press open to simulate a fresh file-handler launch with a real file. Press reload to simulate Ctrl+R. Watch each pane's document list grow or stay still.
pre-146
bug
launches received: 0
docs in list:
chrome 146
fixed
launches received: 0
docs in list:
// 146 contract:
// launchQueue.setConsumer(params => { addDocument(params.files[0]) })
// — fires once per real launch (not on reload). Use sessionStorage if you
// need the file again across same-page reloads.