gecko-dev/docshell
Olli Pettay 67eda3a866 Bug 1697838, explictly evict bfcache when doing a frameloader swap r=peterv
This is in practice the behavior already, because swap is really a move and removing the old tab, and
when removing the other tab, the bfcached frameloaders are destroyed. But they stay still in the session history.
So this patch clears session history explicitly.

As long as we have message managers, we can't really support bfcache in this case, since we can't swap message managers,
there are no corresponding managers on the other side.
Message managers need to stay always in the original window, since the listeners are from there.

WindowActors do move with frameloader/browsingcontext, but that leads easily to memory leaks.
https://bugzilla.mozilla.org/show_bug.cgi?id=1697918 is about that and it has nothing to do with bfcache.

Differential Revision: https://phabricator.services.mozilla.com/D108273
2021-03-24 18:57:14 +00:00
..
base Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika 2021-03-24 17:56:49 +00:00
build
resources/content Bug 1695253 - Replaced DTD/xhtml1-strict.dtd which lead to broken network loads. r=mossop 2021-03-24 16:52:06 +00:00
shistory Bug 1699484 - Support Timer based bfcache eviction, r=peterv 2021-03-21 21:46:26 +00:00
test Bug 1697838, explictly evict bfcache when doing a frameloader swap r=peterv 2021-03-24 18:57:14 +00:00
moz.build