Bug 304531: event.target.rel has no properties (Port fix from bug 225854), patch by Phil Ringnalda <bugzilla@philringnalda.com>, r=mconnor

This commit is contained in:
gavin@gavinsharp.com 2007-08-21 22:00:38 -07:00
parent eb4cf4452c
commit b7e4425668

View File

@ -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;