Bug 1547871 - BrowsingContext needs a group to evict from cache. r=neha

Differential Revision: https://phabricator.services.mozilla.com/D29669

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Farre 2019-05-03 16:08:40 +00:00
Родитель c901619704
Коммит 5d18af73e6
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -283,7 +283,7 @@ void BrowsingContext::Detach(bool aFromIPC) {
RefPtr<BrowsingContext> kungFuDeathGrip(this);
if (!Group()->EvictCachedContext(this)) {
if (Group() && !Group()->EvictCachedContext(this)) {
Children* children = nullptr;
if (mParent) {
children = &mParent->mChildren;