Hello,
We have observed an unexpected behavior with embedded iFrames in HubSpot:
When a user closes the iFrame via the HubSpot UI in the settings screen of a public app, the iFrame reloads just before being closed.
This triggers all front-end scripts and network requests inside the iFrame.
In our code, it is impossible to detect whether the iFrame is being opened or just closed, making it difficult to control script execution.
Could you clarify if this behavior is intended or documented, and whether there is a recommended way to reliably detect when the iFrame is truly closed?