Bug 629122 Crashed tab causes displayport to stop setting r=wesj

This commit is contained in:
Benjamin Stover 2011-02-01 09:38:41 -08:00
Родитель 323a9adf58
Коммит 62ff2c3c8d
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -2606,6 +2606,7 @@ Tab.prototype = {
resurrect: function resurrect() { resurrect: function resurrect() {
let dead = this._browser; let dead = this._browser;
let active = this.active;
// Hold onto the session store data // Hold onto the session store data
let session = { data: dead.__SS_data, extra: dead.__SS_extdata }; let session = { data: dead.__SS_data, extra: dead.__SS_extdata };
@ -2618,6 +2619,8 @@ Tab.prototype = {
// Destory and re-create the browser // Destory and re-create the browser
this._destroyBrowser(); this._destroyBrowser();
let browser = this._createBrowser(currentURL, sibling); let browser = this._createBrowser(currentURL, sibling);
if (active)
this.active = true;
// Reattach session store data and flag this browser so it is restored on select // Reattach session store data and flag this browser so it is restored on select
browser.__SS_data = session.data; browser.__SS_data = session.data;