Closed Bug 1333046 Opened 8 years ago Closed 8 years ago

Teach the tab object how to zombify/unzombify itself

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox54 fixed)

RESOLVED FIXED
Firefox 54
Tracking Status
firefox54 --- fixed

People

(Reporter: JanH, Assigned: JanH)

References

Details

Attachments

(2 files)

External consumers outside browser.js that get hold of a tab object still have to load the MemoryObserver themselves in order to zombify a tab - we should either move the implementation of that function into the tab prototype, or at least include a forwarding function for easier calling. Restoring a zombified tab is even worse - this is done by the session store which doesn't export this capability at all, so anybody else wanting to restore a tab must poke around within the session store data structures and reimplement the whole process, which means either duplicating quite a lot of session store code, or else potentially loosing data [1]. [1] E.g. this add-on: https://github.com/jmozmoz/tabPreLoader/issues/1
See Also: → 1333047
See Also: → 1322485
Comment on attachment 8830477 [details] Bug 1333046 - Part 1 - Expose a method to restore delay-loaded tabs via the tab object. https://reviewboard.mozilla.org/r/107234/#review108424
Attachment #8830477 - Flags: review?(ahunt) → review+
Comment on attachment 8830478 [details] Bug 1333046 - Part 2 - Move zombification function into the tab object. https://reviewboard.mozilla.org/r/107236/#review108426 This looks like a good improvement!
Attachment #8830478 - Flags: review?(ahunt) → review+
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11ba6139302e Part 1 - Expose a method to restore delay-loaded tabs via the tab object. r=ahunt https://hg.mozilla.org/integration/autoland/rev/2bd13e9c2a01 Part 2 - Move zombification function into the tab object. r=ahunt
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: