In ReactFiberPerformanceTrack it tries to deep read the props in DEV mode, props may deeply contains cross-origin frame
which will cause SecurityError: Failed to read a named property '$$typeof' from 'Window': Blocked a frame with origin "http://localhost:8080/" from accessing a cross-origin frame.
React version: 19.2.0 (I believe the change is introduced in #30967)
Steps To Reproduce
there are three factors caused this problem
- deep in props there is a reference to host
window or document object
- google reCAPTCHA is in use. it mounts a iframe and inject the iframe reference to
document

3. react 19.2.0 tries to recursively read props object and access `.$$typeof`
The current behavior
Throwing error
The expected behavior
Not to throw error
In
ReactFiberPerformanceTrackit tries to deep read the props in DEV mode,propsmay deeply containscross-origin framewhich will cause
SecurityError: Failed to read a named property '$$typeof' from 'Window': Blocked a frame with origin "http://localhost:8080/" from accessing a cross-origin frame.React version: 19.2.0 (I believe the change is introduced in #30967)
Steps To Reproduce
there are three factors caused this problem
windowordocumentobjectdocumentThe current behavior
Throwing error
The expected behavior
Not to throw error