IE11 - Using window.location.replace and META prerender pushes to the history object and does not disable Back navigation caching

Fixed Issue #101896

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL = http://robert-daly.com/temp/ie/page1.html

URL: http://robert-daly.com/temp/ie/page1.html

Repro Steps:

[Updated]

  1. open http://robert-daly.com/temp/ie/page1.html
  2. make sure that the F12 developer tools is closed
  3. click the link
    – notice the back button is enabled.

Close the browser

  1. open http://robert-daly.com/temp/ie/page1.html
  2. open F12 developer tools (click on console)
  3. click the link on the page to advance to page 2
    – notice the back button is disabled
    – F12 console states : DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
    File: page1.html

[OLD REPRO Steps – still valid]
Add this in the head of a new HTML page (back button is inactive);

<script>
setTimeout(function() {
window.location.replace(‘{{{url}}}’);
}, 3000);

{{! Disable the back/forward cache; http://msdn.microsoft.com/en-us/library/ie/dn265017(v=vs.85).aspx }}
window.onbeforeunload = function(e) {
    return;
}

</script>

<link rel="prerender" href="{{{url}}}" />

When the page redirects if the prerender is complete, back button becomes active.

Expected Results:

Browser redirects to {{{url}}} without the back button becoming active. becuase the webpage contains an beforeunload event which should disable the back button just like it does when F12 is enabled.

Actual Results:

Back button is not disabled as expected.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To from “Bruce M.” to “Michael E.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed”

      Changed Assigned To to “Bruce M.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “IPBS P.”

      Changed Status to “Fixed”

      Changed Assigned To from “IPBS P.” to “Venkat K.”

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

    Sign in