title: IOS Safari window.alert, window.confirm not working after onpopstate triggered
body: <p>After onpopstate event triggered, window.alert, window.confirm etc not working.  </p>
  
  <p><a href="https://i.stack.imgur.com/aODGM.png" rel="noreferrer">This is related console logs Image</a></p>
  
  <p>And this is what I tested.</p>
  
  <ul>
  <li>First I registered <code>popstate</code> event.</li>
  <li>And tried <code>window.alert('abc');</code> // It works.</li>
  <li>Tried <code>history.back()</code> or click back button, then <code>popstate</code> event triggered.</li>
  <li>And tried <code>window.alert('abc');</code> // Not working.</li>
  </ul>
  
  <blockquote>
    <p>I found the same issue, there is no answers left, so I post a question once again.<br>
    <a href="https://stackoverflow.com/questions/38083702/alert-confirm-and-prompt-not-working-after-using-history-api-on-safari-ios">Alert, confirm, and prompt not working after using History API on Safari, iOS</a></p>
  </blockquote>
  
  <ul>
  <li>I can't do <code>location.reload</code> inside the <code>onpopstate</code> event because of some issues.</li>
  </ul>
  
  <p>Is there any ios bug report?<br>
  or.. Does anyone know why this happenes or how to fix it?</p>