Bug 1588748 - Make an scroll anchoring assertion a release assert. r=dholbert

This should prevent this being exploitable, should this fire.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-10-15 18:46:42 +00:00
Родитель bc77394f54
Коммит 5e0abce31f
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -376,7 +376,7 @@ void ScrollAnchorContainer::ApplyAdjustments() {
}
}
MOZ_ASSERT(!mApplyingAnchorAdjustment);
MOZ_RELEASE_ASSERT(!mApplyingAnchorAdjustment);
// We should use AutoRestore here, but that doesn't work with bitfields
mApplyingAnchorAdjustment = true;
mScrollFrame->ScrollTo(mScrollFrame->GetScrollPosition() + physicalAdjustment,