Bug 681944 - Remove "empty" attribute from the thumbnails of restored tabs (r=mfinkle)

Once tabs are restored and their thumbnails are loaded from session data, the canvas should not be marked as empty anymore.
This commit is contained in:
Lucas Rocha 2011-09-15 21:33:20 +01:00
Родитель 11a7969238
Коммит 27d12e1bac
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -790,8 +790,10 @@ SessionStore.prototype = {
let image = new window.Image();
image.onload = function() {
if (canvas)
if (canvas) {
canvas.getContext("2d").drawImage(image, 0, 0);
canvas.removeAttribute("empty");
}
};
image.src = tabData.extData.thumbnail;
}