Issue Description:
Context
- We have an
iframe
in our app to serve some information from our website - In order to have navigation UI elements and loading indicators in the app itself, we use
window.postMessage()
to faciliate communication between theiframe
and the app - The page in the
iframe
sends a message to the app when the page first loads, and when thebeforeunload
event fires on the page
Issue
- When a link in the app not in the
iframe
is clicked it somehow causes thebeforeunload
even to fire in theiframe
which erroneously causes the loading indicator to show and block interaction with the iframe
Steps to reproduce:
- Open the app
- Go through onboarding experience, if first launch
- Let the iframe in the right side of the app finish loading
- Click the “How do I get my sharecode?” link in the left side
- Loading indicator should show up over the iframe
Impact for my app: [low, mid, high, show-stopper]
Do you currently have a workaround?
- If you switch tabs to reset the iframe, then the loading indicator can disappear
- Otherwise there’s no way to actually avoid the issue
OPK file and video has been linked privately on Slack.