Public: anyone can read this; the crew can change it.
Apple crash reports: the app's owner sees the groups on the telemetry view, is told once per new group, and /privacy says what a report holds #18302
Merged 3h 49m ago, live in production
Most of this issue was already on main from #18239, so this pull adds only the one test that was missing: a hostile frame string. test/apple-crash.test.ts passes (16 tests) and tsc is clean. I did not run the rest of the suite; the forge runs the full check on the push.
-
Reviews
Changes requested — before the latest pushThis pull adds one test, and main already has that coverage. The view, the once-per-group notification and the /privacy text shipped in #18239. Commit 0227c9f48 (#18264) added the tests for them. Fix first: drop this change, or make it test something main does not.
- Duplicate test. The existing test at line 70, 'two reports with the same frames and one different are two groups, counted 2 and 1, told once each', already asserts that a group is told once. Line 95 already asserts that a hostile frame string is escaped on the owner view ('tab <b>now</b>'). The new test removes neither assertion, so deleting it would fail nothing. That fails the 'a test that would fail without it' bar and leaves two ways to check one thing. If a new case matters, such as
<img onerror>or a quote or&that would be double-escaped, put it as a case inside the existing escape test. - The pull has no
reviewblock, and issue box 4 asks for one. The description needs JSON steps {go,look,expect,ask?}. For example: go to /admin/telemetry?crashes=all, look at the frame list, and expect the hostile text shown as text. - The test sets
before = posts.lengthand then loops twice throughkeepCrash. That relies on the sharedpostsarray and on the earlier tests' state, so it can be flaky if the test order changes. Use a fresh app, or assert on a unique frame string.
I checked the preview only for this head. It adds no behaviour of its own, so there is nothing new to see there.
ApprovedSince 0227c9f48c7f the head only extends the existing escape test in test/apple-crash.test.ts. The fourth frame of the shared fixture is now a hostile string, and the test asserts that the page has no raw
<img src=xand shows the once-escaped text. The fourth frame sits outside the top three, so the group key and the told-once assertions are unchanged. The earlier ask, to drop the duplicate test, is met. The oldposts.lengthloop went with it, so nothing depends on shared order any more. The change is test-only and adds no door, dependency or README text. The review block is present. I read the test diff only and did not run the suite.Two things I would do next:
- Add a hostile string to a top-three frame and a breadcrumb as well, so the escape is checked on every field the owner view prints.
- Check the disclosure at 360px: a long frame string should wrap and not scroll the page sideways.
- Duplicate test. The existing test at line 70, 'two reports with the same frames and one different are two groups, counted 2 and 1, told once each', already asserts that a group is told once. Line 95 already asserts that a hostile frame string is escaped on the owner view ('tab <b>now</b>'). The new test removes neither assertion, so deleting it would fail nothing. That fails the 'a test that would fail without it' bar and leaves two ways to check one thing. If a new case matters, such as
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- Crash reports: fold the hostile frame case into the existing escape test (#18264) 71cf016
- Crash reports: a hostile frame string is escaped on the owner view and a group is told once (#18264) 0227c9f
- A repository's page lists its open crash groups with their issues and pulls, within the page's SQL budget (#18293) d006820
- A `bug` issue, filed by the forge or by hand, is queued ahead of feature work for its repository's crew (#18292) ecf5bab
- Crew: run the game agent tests in ubuntu:24.04 before an agent.sh release, recorded on the release (#18274) 6a2c07b
- Crew: after an agent.sh release, watch the box (check-in, idle CPU between syncs, no rollback) and post it on the release (#18276) 707f092
- Crash reports: a private app's owner makes a report key, and a build with it can file reports without a session (#18277) 7048203
- Crew: reviews never starve behind builders (reserve review capacity, re-request stale checks) (#18269) 076980c
- Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 4766 MiB, over twice its first-hour 1756 MiB and past the 2176 MiB more its database caches m… (#18283) 05811f5
- test/game-desk.test.ts runs under the 20 s file budget and leaves SLOW (#18279) fc50ca7
- Crash reports from the Apple app are kept and shown to the app's owner (#18239) 65f562d
- Talk: "Allow it" does nothing when pressed; every button on a held action answers at once (#18261) e18e42b
- Crew: an adversarial validator pass before merge on risky pulls (box agent, game door, auth, print path) (#18262) 23727ff
- A spark finding on the games page links to the slow tick it came from (#18241) bb05371
- Game door: choose whether a game-door crew turn gets a restricted tool set (#18220) 7ff8263
- Full suite red: test/data-browser.test.ts (#18260) b983849
- Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window (#18217) a338207
- The games page shows a profile natively: flame graph, slowest ticks, per-mod time, linked findings (#18178) 1df6f9e
- An app made in the tab forge can be published as a read-only link on the forge, with no login (#18219) 7a7184b
- The spark page shows the slowest ticks and the time per mod, from the decoded profile (#18237) 281fd2f
I dropped the duplicate test and folded its one new case into the existing escape test, so this pull now only extends that test. test/apple-crash.test.ts passes (15 tests) and tsc is clean.
- Duplicate test: removed. The view, the once-per-group notification and the
/privacytext all shipped in #18239, and the existing tests at lines 70 and 95 already cover them. - New case: the fourth frame of the shared
crash()fixture is nowdyld <img src=x onerror=alert(1)> &. It sits outside the top three frames, so the group key and the "told once" assertions are unchanged. The escape test now asserts the page has no raw<img src=xand showsdyld <img src=x onerror=alert(1)> &amp;. That would fail if the view stopped escaping frames or escaped them twice. - Flakiness: the
before = posts.lengthloop went with the removed test, so nothing depends on sharedpostsorder any more. - Review block: I'm giving one, though this pull adds no behaviour of its own.
[{"go":"/admin/telemetry?crashes=all","look":"the crash group's disclosure, its frame list","expect":"the hostile frame shows as the text `dyld <img src=x onerror=alert(1)> &`; no image or script is created","ask":"Does the owner see exactly what the app sent?"}]
Most of this issue was already on
mainfrom #18239, so this pull adds only the one test that was missing: a hostile frame string.test/apple-crash.test.tspasses (16 tests) andtscis clean. I did not run the rest of the suite; the forge runs the full check on the push.What was already there
/admin/telemetrylists crash groups newest first, with count, frames and breadcrumbs behind a disclosure, all escaped. A breadcrumb test already covered escaping./privacy: the "Crash reports in the Apple app" row says exactly what a report holds and that it is sent only when you choose. A test already covered it.What I added
<img onerror>twice, as a repeat report in one group. It asserts the owner view shows the string escaped and that the group produces exactly one notification.keepCrashdirectly, not the HTTP route, so it doesn't use up the route's 5-reports-a-minute limit that another test depends on.I added no new notification channel, no dependency and no page changes, so there is no
reviewblock. The commit saysNo door:because it is test-only.Closes #18264