Repository navigation
Conversation
6f1b024 to
ab1446b
Compare
Findings
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d7d6afab-8453-4845-8ef4-b7d068ce0353
Files selected for processing: 1-
src/main/plugins/panels/plugin-frame-blocked-requests.electron.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
| app.exit(0) | ||
| } | ||
| }) | ||
| setTimeout(() => { writeFileSync(resultPath, JSON.stringify({ messages })); app.exit(0) }, 15000) |
There was a problem hiding this comment.
Keep the timeout path from passing the test.
Line 46 writes a partial result and exits with status 0. The launcher then treats the run as successful, while the test checks only the seven expected origins and recognized messages. (github.com)
If Electron emits the seven origin refusals but not the eighth fetch cancellation echo, the timeout path returns those seven messages and the test passes. The existing child logic expects eight CSP messages, and the eighth message is the fetch echo. (github.com)
Add assertions for eight messages and the cancellation echo, or exit with a non-zero status from the timeout path.
Suggested assertion
-
console.log('CSP-DIAG', JSON.stringify(messages)) +expect(refusals).toHaveLength(8) +expect(refusals.some(isPluginFrameCancelledRequestEcho)).toBe(true) expect(unread).toEqual([])
|
Diagnostic done: the probe never wrote its result on Linux; fix in the follow-up PR. |
Throwaway diagnostic for the plugin-frame-blocked-requests electron test; will be closed.