Favicon vanishes after using window.history.pushState

Fixed Issue #9383036


Stefan T.
Oct 17, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
Reported by 6 people

Sign in to watch or report this issue.

Steps to reproduce

Using window.history.pushState to store state information from the page into the url will result in losing the favicon.

This issue causes alot of well-known applications to ‘lose’ their favicon as soon as the user starts interacting with the page (e.g. maps.google.com when panning). This does not happen in other popular browsers

Steps to reproduce

  1. Create HTML with button to call window.history.pushState with random new url-parameter (Or just use the one provided below)
  2. add link-rel favicon
  3. load the html and click the button

Example page
Sample html: (This html refers to wikipedia so youll need to serve it via a webserver/container)

<!DOCTYPE html>
        <title>Favicon test</title>
        <link rel="shortcut icon" href="https://en.wikipedia.org/favicon.ico">
        <script type="text/javascript">
         function changeState(){
             var time = new Date().getTime();
             var someState = {param: time};
             window.history.pushState(someState, 'foobar', '?foo='+ time);
        <button onClick="changeState()">push state information</a><br/>


0 attachments

    Comments and activity

    • +1. Would be interested too.

    • Interesting

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Status to “Fixed”

    • Thank you for the feedback on IE 11 and Edge.

      I can still repro this in IE 11 on the latest insider fast ring (14951) but not in Edge. I’ll resolve it out as fixed since I am not seeing the same behavior between the two. Please note that we are not working on IE feature bugs any longer unless they are security related.

      All the best,
      The MS Edge Team

    • I know this issue is already closed as Fixed, but I’m still facing a very similar problem when navigating to the following state: "history.pushState(null, document.title, ‘/home’)".
      Does anybody know if this is by design or a bug?

      IE is DUMB, edge is baby of it !!!

    • This is still open and u marked as DONE

    • Hi, for information, the problem is still reproduced in EDGE (version 41.16299.15.0).

      When we pushState with new path, my favicon is replaced by an icon of window.

    • This is not resolved. Still happens. Why is it marked done?

    • I’ve opened a new issue for this here as Microsoft has chosen to close this one and ignore comments indicating that it is not resolved.

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

    Sign in