gecko/browser/base/content/test/general/file_favicon_change.html
Gijs Kruitbosch 1207074468 Bug 577892 - allow icons to change when href attribute is set directly, with automated test, r=dolske,bz
--HG--
extra : rebase_source : 8b74cb3e4c60df4b84c207f2ae1bc371e238d19d
2014-07-03 22:40:52 +01:00

14 lines
419 B
HTML

<!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>