Bug 897408 - remove erroneous style.removeProperty call in Site.prototype.refreshThumbnail. r=ttaubert

This commit is contained in:
Mark Hammond 2013-08-07 11:10:57 +10:00
parent 4bf567ba23
commit a4e0e4a736

View File

@ -144,10 +144,6 @@ Site.prototype = {
refreshThumbnail: function Site_refreshThumbnail() {
let thumbnailURL = PageThumbs.getThumbnailURL(this.url);
let thumbnail = this._querySelector(".newtab-thumbnail");
// if this is being called due to the thumbnail being updated we will
// be setting it to the same value it had before. To be confident the
// change wont be optimized away we remove the property first.
thumbnail.style.removeProperty("backgroundImage");
thumbnail.style.backgroundImage = "url(" + thumbnailURL + ")";
},