From 561819cc3bdb6d7e2777c0f0e15d49d811cd3b9c Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Mon, 27 Jun 2005 05:28:28 +0000 Subject: [PATCH] Bug 297945 (Firefox keeps loading favicon.... forever). patch from Christian Schmidt , r=vlad, a=asa. --- browser/components/bookmarks/content/bookmarks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/components/bookmarks/content/bookmarks.js b/browser/components/bookmarks/content/bookmarks.js index d6e0ec27ea9..7cb5dae1fbd 100644 --- a/browser/components/bookmarks/content/bookmarks.js +++ b/browser/components/bookmarks/content/bookmarks.js @@ -1680,6 +1680,9 @@ var BookmarksUtils = { }, loadFavIcon: function (aURL, aFavIconURL) { + if (!RDF || !BMSVC) + return; + var urlLiteral = RDF.GetLiteral(aURL); // don't do anything if this URI isn't bookmarked var bmResources = BMSVC.GetSources(RDF.GetResource(gNC_NS+"URL"), urlLiteral, true);