summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/favicons/file_favicon_change_not_in_document.html
blob: c44a2f8153a0285aeb5a840a60cca3285cb7069a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <link rel="icon" href="file_bug970276_favicon1.ico" type="image/ico" id="i">
</head>
<body onload="onload()">
  <script>
  function onload() {
    var ico = document.createElement("link");
    ico.setAttribute("rel", "icon");
    ico.setAttribute("type", "image/ico");
    ico.setAttribute("href", "file_bug970276_favicon1.ico");
    setTimeout(function() {
      ico.setAttribute("href", "file_generic_favicon.ico");
      document.getElementById("i").remove();
      document.head.appendChild(ico);
    }, 1000);
  }
  </script>
</body></html>