Skip to content

Conversation

@jzhan-canva
Copy link

fix #34840

Summary

ReactPerformanceTrackProperties tries to read $$typeof on every object which may throw.
Wrap reading $$typeof in try/catch for ReactPerformanceTrackProperties.

@thisisanto
Copy link

Would love to see this fix land 🙏🏼
This has causing a regression when running a React app in dev mode in an iframe, and app passes window as a prop.

Uncaught SecurityError: Failed to read a named property ‘$$typeof’ from ‘Window’: Blocked a frame with origin “https://foo.com” from accessing a frame with origin “https://www.bar.com/”. Protocols, domains, and ports must match.

@rickhanlonii rickhanlonii requested a review from hoxyq November 5, 2025 21:24
@Legomegger
Copy link

Hi! Any chance this PR will be merged or another fix applied? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: react-dom-client.development.js tries to read $$typeof on iframe object

3 participants