History API bug -- window.history.state should not fire popstate after load.

Fixed Issue #753774

Details

Created
Aug 28, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Examine the code below. Going to e.g. google.com, then the page with the code below, then back to google.com and back again to this page, should not fire onpopstate.

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<script type="text/javascript">
var history_control = new history_control_object ()
function history_control_object (new_state) {
window.addEventListener ('popstate’, function (evt) {console.log (evt.state)})
history.replaceState ({url: 'apple’}, “”)
}
</script>
</body>
</html>

Expected Results:

The onpopstate event is not fired.

Actual:

The onpopstate event is fired.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Rico M.”

      Changed Assigned To from “Rico M.” to “Frank O.”

      Changed Assigned To from “Frank O.” to “IE F.”

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in