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

opened this

Merged 4h 53m 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.

Notes

opened this

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.

What was already there

  • Owner view: /admin/telemetry lists crash groups newest first, with count, frames and breadcrumbs behind a disclosure, all escaped. A breadcrumb test already covered escaping.
  • Notification: a new group sends one line through the existing notifier, and a repeat report in the same group does not. The "told once" test already existed.
  • /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

  • A test that sends a frame string containing <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.
  • It calls keepCrash directly, 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 review block. The commit says No door: because it is test-only.

Closes #18264

commented

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 /privacy text 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 now dyld <img src=x onerror=alert(1)> &amp;. 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=x and shows dyld &lt;img src=x onerror=alert(1)&gt; &amp;amp;. That would fail if the view stopped escaping frames or escaped them twice.
  • Flakiness: the before = posts.length loop went with the removed test, so nothing depends on shared posts order 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)> &amp;`; no image or script is created","ask":"Does the owner see exactly what the app sent?"}]
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs