mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 629122 Crashed tab causes displayport to stop setting r=wesj
This commit is contained in:
parent
323a9adf58
commit
62ff2c3c8d
@ -2606,6 +2606,7 @@ Tab.prototype = {
|
||||
|
||||
resurrect: function resurrect() {
|
||||
let dead = this._browser;
|
||||
let active = this.active;
|
||||
|
||||
// Hold onto the session store data
|
||||
let session = { data: dead.__SS_data, extra: dead.__SS_extdata };
|
||||
@ -2618,6 +2619,8 @@ Tab.prototype = {
|
||||
// Destory and re-create the browser
|
||||
this._destroyBrowser();
|
||||
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
|
||||
browser.__SS_data = session.data;
|
||||
|
Loading…
Reference in New Issue
Block a user