summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/file_favicon_change.html
blob: 18ac6526b50a3383b8a777b3981b4202ac1248d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <link rel="icon" href="http://example.org/one-icon" type="image/ico" id="i">
</head>
<body>
  <script>
  window.addEventListener("PleaseChangeFavicon", function() {
    var ico = document.getElementById("i");
    ico.setAttribute("href", "http://example.org/other-icon");
  });
  </script>
</body></html>