From bbd010b5a3c31725c33823979c67ddfbdaa9d3db Mon Sep 17 00:00:00 2001 From: Scott Jaderholm Date: Thu, 14 Mar 2013 19:03:49 -0700 Subject: [PATCH] favicon.js: use setAndFetchFaviconForPage for xulrunner 18 and above nsIFaviconService::setAndLoadFaviconForPage was marked deprecated in favor of mozIAsyncFavicons::setAndFetchFaviconForPage in xulrunner 21. Since we already have a branch for xulrunner 18+ when the privacy argument was added, and since favicon_service implements mozIAsyncFavicons at least as far back as 18, I'm reusing that branch. --- modules/favicon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/favicon.js b/modules/favicon.js index abbe60b..ea606b2 100644 --- a/modules/favicon.js +++ b/modules/favicon.js @@ -20,7 +20,7 @@ define_variable("favicon_image_max_size", 1024, let (favicon_set_internal) { if (version_compare(get_mozilla_version(), "18.0") >= 0) { favicon_set_internal = function (buffer, icon_url) { - favicon_service.setAndLoadFaviconForPage( + favicon_service.setAndFetchFaviconForPage( buffer.current_uri, icon_url, false, favicon_service.FAVICON_LOAD_NON_PRIVATE); }; -- 2.11.4.GIT