Fix favicon updating on Opera. See comments, issue #30

This commit is contained in:
Nicolas Stepien 2011-12-08 02:06:23 +01:00
parent b1131d28f8
commit 3024346b94
3 changed files with 9 additions and 3 deletions

View File

@ -2774,8 +2774,9 @@
l = unread.replies.length;
favicon = $('link[rel="shortcut icon"]', d.head);
favicon.href = g.dead ? l ? this.unreadDead : this.dead : l ? this.unread : this["default"];
if (engine === "gecko") {
if (engine !== 'webkit') {
clone = favicon.cloneNode(true);
favicon.href = null;
return $.replace(favicon, clone);
}
}

View File

@ -1,4 +1,6 @@
master
- mayhem
fix favicon updating on Opera
2.23.0
- mayhem

View File

@ -2171,9 +2171,12 @@ Favicon =
else
@default
#XXX `favicon.href = href` doesn't work on Firefox
if engine is "gecko"
#`favicon.href = href` doesn't work on Firefox
#`favicon.href = href` isn't enough on Opera
#Opera won't always update the favicon if the href do not change
if engine isnt 'webkit'
clone = favicon.cloneNode true
favicon.href = null
$.replace favicon, clone
redirect = ->