I'd like to make sure that I'm understanding the spec for pushState and the popstate event properly.<div><br></div><div>Suppose, I have the following sequence of events:</div><div><br></div><div>1. Page A is loaded.</div>
<div>2. Page A calls pushState("foo", null).</div><div>3. The user navigates to Page B.</div><div>4. The user navigates back to Page A (clicks the back button once).</div><div><br></div><div>Assuming the document of Page A was disposed upon navigation to Page B (i.e., that it was not preserved in a page cache), should a popstate event be generated as a result of step 4?</div>
<div><br></div><div>From my reading of the spec, I would expect the following steps:</div><div><br></div><div>5. Page A is loaded.</div><div>6. The load event for Page A is dispatched.</div><div>7. The popstate event for Page A is dispatched.</div>
<div><br></div><div>Do I understand correctly?</div><div><br></div><div>Thanks,</div><div>-Darin</div>