Problem
In IsolationTest.tsx, reading window.parent.location.origin can throw synchronously in sandboxed cross-origin iframes. This path is not guarded with try/catch.
Additionally, isIsolated doesn't include canFetchParentOrigin in its predicate, so the status can report "isolated" even when that specific check fails or passes unexpectedly.
Location
registry/outputs/isolated/IsolationTest.tsx
Suggested Fix
-
Wrap parent-origin derivation in try/catch:
let parentOrigin: string | null = null;
try {
parentOrigin = window.parent.location?.origin ?? null;
} catch {
parentOrigin = null; // Expected in sandboxed iframe
}
-
Include !testResult.canFetchParentOrigin in the isIsolated predicate and checklist
Severity
Low - this is a test/diagnostic component, not user-facing functionality. But it can cause confusing results when diagnosing isolation issues.
Problem
In
IsolationTest.tsx, readingwindow.parent.location.origincan throw synchronously in sandboxed cross-origin iframes. This path is not guarded with try/catch.Additionally,
isIsolateddoesn't includecanFetchParentOriginin its predicate, so the status can report "isolated" even when that specific check fails or passes unexpectedly.Location
registry/outputs/isolated/IsolationTest.tsxSuggested Fix
Wrap parent-origin derivation in try/catch:
Include
!testResult.canFetchParentOriginin theisIsolatedpredicate and checklistSeverity
Low - this is a test/diagnostic component, not user-facing functionality. But it can cause confusing results when diagnosing isolation issues.