Backed out changeset 194f941f2064 (bug 809056) for mochitest-bc bustage

This commit is contained in:
Wes Kocher 2014-01-07 14:53:04 -08:00
parent 39d22047ea
commit c3fd1d2c74
2 changed files with 1 additions and 7 deletions

View File

@ -4,8 +4,6 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#endif
Cu.import("resource://gre/modules/NewTabUtils.jsm");
/**
* Keeps thumbnails of open web pages up-to-date.
*/
@ -122,10 +120,6 @@ let gBrowserThumbnails = {
},
_shouldCapture: function Thumbnails_shouldCapture(aBrowser) {
// Capture only if it's a top site in about:newtab.
if (NewTabUtils.links.getLinks().indexOf(aBrowser.currentURI.spec) < 0)
return false;
// Capture only if it's the currently selected tab.
if (aBrowser != gBrowser.selectedBrowser)
return false;

View File

@ -621,7 +621,7 @@ let Links = {
let pinnedLinks = Array.slice(PinnedLinks.links);
// Filter blocked and pinned links.
let links = (this._links || []).filter(function (link) {
let links = this._links.filter(function (link) {
return !BlockedLinks.isBlocked(link) && !PinnedLinks.isPinned(link);
});