зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
bc77394f54
Коммит
5e0abce31f
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче