Cannot read properties of null (reading 'Error') #226
Labels
help wanted
Extra attention is needed
needs reproduction
Needs more information and a way to reproduce the issue
Describe the bug
We have received some errors:
(debug) e.top is null
Cannot read properties of null (reading 'Error')
This error was happing in this line in the file (~partytown/debug/partytown-sandbox-sw.js):
const serializedValueIsError = value => value instanceof window.top.Error;
Iframe and main application have the same domains and we didn't have errors with cross domain communication. Because of partytown is changing the main window history object, our application was broken and we couldn't navigation by page.
Can you help, please, we don't understand how it is possible window.top = null
Expected behavior
Application navigation must work, if iframe has error
Partytown version
0.6.2
Additional context
devices:
Samsung SM-A525F (Chrome Mobile 103.0.0)
Samsung Internet 17.0 (Samsung SM-J415FN)
Huawei STF-L09 (Chrome Mobile 103.0.0)
The text was updated successfully, but these errors were encountered: