diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index b8d37562077..3cf87a4f654 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -762,11 +762,11 @@ if (!tabBrowser.mPrefs.getBoolPref("browser.chrome.site_icons")) return; - if (!event.target.rel.match((/(?:^|\s)icon(?:\s|$)/i))) + if (!event.originalTarget.rel.match((/(?:^|\s)icon(?:\s|$)/i))) return; // We have an icon. - var href = event.target.href; + var href = event.originalTarget.href; if (!href) return;