Bug 744152 - [Page Thumbnails] Capture thumbnails only for the selected tab; r=dietrich

This commit is contained in:
Tim Taubert 2012-04-14 00:18:27 +02:00
Родитель 9487d63825
Коммит 7611cf3c8c
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -8,7 +8,7 @@
* Keeps thumbnails of open web pages up-to-date.
*/
let gBrowserThumbnails = {
_captureDelayMS: 2000,
_captureDelayMS: 1000,
/**
* Map of capture() timeouts assigned to their browsers.
@ -98,6 +98,11 @@ let gBrowserThumbnails = {
},
_shouldCapture: function Thumbnails_shouldCapture(aBrowser) {
// Capture only if it's the currently selected tab.
if (aBrowser != gBrowser.selectedBrowser)
return false;
// Don't capture in private browsing mode.
if (gPrivateBrowsingUI.privateBrowsingEnabled)
return false;