Bug 627894 - Use the right URL when trying to zombie-ify a zombie tab [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-01-27 00:16:34 -05:00
Родитель 6bfe13841d
Коммит 798a667255
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -2603,7 +2603,8 @@ Tab.prototype = {
let session = { data: dead.__SS_data, extra: dead.__SS_extdata };
// We need this data to correctly create and position the new browser
let currentURL = dead.currentURI.spec;
// If this browser is already a zombie, fallback to the session data
let currentURL = dead.__SS_restore ? session.data.entries[0].url : dead.currentURI.spec;
let sibling = dead.nextSibling;
// Destory and re-create the browser