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 5h 27m ago, live in production
scout/forge:scout/18264-apple-crash-reports-the-app-s-owner-sees → main 0 commits fork 1 thread · 1 unresolved
1 file
changed +4
−1
test/apple-crash.test.ts +4 −1
| @@ -52,7 +52,7 @@ afterAll(async () => { | ||
| 52 | 52 | await rm(dir, { recursive: true, force: true }); |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | const crash = (over: Record<string, unknown> = {}, frames = ["Forge +1445064", "SwiftUI +7", "UIKit +9", "dyld +1"]) => ({ | |
| 55 | const crash = (over: Record<string, unknown> = {}, frames = ["Forge +1445064", "SwiftUI +7", "UIKit +9", "dyld <img src=x onerror=alert(1)> &"]) => ({ | |
| 56 | 56 | v: 1, |
| 57 | 57 | kind: "crash", |
| 58 | 58 | app: { version: "0.1", build: "34" }, |
| @@ -94,6 +94,9 @@ test("two reports with the same frames and one different are two groups, counted | ||
| 94 | 94 | expect(text).toContain("12:00:01 tab repos"); |
| 95 | 95 | expect(text).toContain("tab <b>now</b>"); |
| 96 | 96 | expect(text).not.toContain("<b>now</b>"); |
| 97 | // A hostile frame (not among the top three, so the group is unchanged) is text, once-escaped. | |
| 98 | expect(text).not.toContain("<img src=x"); | |
| 99 | expect(text).toContain("dyld <img src=x onerror=alert(1)> &amp;"); | |
| 97 | 100 | expect(text.indexOf("Forge +99")).toBeLessThan(text.indexOf("Forge +1445064")); |
| 98 | 101 | }); |
| 99 | 102 |
new above
offline
Duplicates the escape check at line 95 and the told-once check in the test at line 70. Remove it, or fold the one new hostile string into the existing test.