From 78bdf9e1be0a23828d04e35e09a43a0367d62a5d Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Wed, 11 Apr 2012 21:49:44 +0200 Subject: [PATCH] Bug 726347 - [Page Thumbnails] add preference to disable capturing thumbnails in the background; r=dao --- browser/base/content/browser-thumbnails.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/base/content/browser-thumbnails.js b/browser/base/content/browser-thumbnails.js index f7fda70b356a..3c37cc7625b5 100644 --- a/browser/base/content/browser-thumbnails.js +++ b/browser/base/content/browser-thumbnails.js @@ -26,6 +26,11 @@ let gBrowserThumbnails = { _tabEvents: ["TabClose", "TabSelect"], init: function Thumbnails_init() { + try { + if (Services.prefs.getBoolPref("browser.pagethumbnails.capturing_disabled")) + return; + } catch (e) {} + gBrowser.addTabsProgressListener(this); this._tabEvents.forEach(function (aEvent) {