You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of the Svelte tutorials use alert (example: https://learn.svelte.dev/tutorial/event-modifiers). After the alert is shown once, no other alert will show up afterwards. Not sure what's going on here, maybe a result of the "we will remove alert support from iframes" push that Google did some time ago.
Also, the iframe is reloaded after each alert, because the "do we still have contact to the iframe" polling doesn't receive any updates while the alert is shown. Not sure how this can be worked around in a way that no false positives/negatives occur.
The text was updated successfully, but these errors were encountered:
Ok this happens because we reload the iframe in the background while the alert is still visible - this deadlocks the iframe on Chrome for some reason. So we have to fix both of the mentioned issues at the same time.
Unfortunately I had to wrap the alert call in setTimeout - it seems that postMessage itself is async, so calling alert eagerly would result in the message never showing up. Hope that's ok @Rich-Harris
A couple of the Svelte tutorials use
alert
(example: https://learn.svelte.dev/tutorial/event-modifiers). After the alert is shown once, no other alert will show up afterwards. Not sure what's going on here, maybe a result of the "we will remove alert support from iframes" push that Google did some time ago.Also, the iframe is reloaded after each alert, because the "do we still have contact to the iframe" polling doesn't receive any updates while the alert is shown. Not sure how this can be worked around in a way that no false positives/negatives occur.
The text was updated successfully, but these errors were encountered: