Reproducible script that can be ran on https://test.dev1.hsstore.ru/safari/ What happened: When an `iframe` calls `window.history.pushState` and then `window.history.back`, the parent window's reloading. It happens only if we create iframe on the parent window and remove it before creating app iframe with history manipulation. Expected behavior: Fire event `popstate` without reload. Steps to reproduce: 1. Create iframe, add to DOM on parent page 2. Remove iframe from DOM on parent page 3. Create another iframe, load some app in it on parent page 4. In an app iframe, call `window.history.pushState(...)` 5. In an app iframe, call `window.history.back(...)` 6. Got reload instead of expected popstate event Demo: 1. Go https://test.dev1.hsstore.ru/safari/ 2. Click pushState 3. Click back 4. Got reload
<rdar://problem/61069867>