Bug 1516754 - P1. Reset Pending Input Buffer during Reset Parser State Algorithm. r=kinetik

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2019-02-06 00:30:35 +00:00
parent bdaa5d90e4
commit 6e021f1b1f

View File

@ -447,6 +447,7 @@ void TrackBuffersManager::CompleteResetParserState() {
}
// 7. Remove all bytes from the input buffer.
mPendingInputBuffer = nullptr;
mInputBuffer = nullptr;
if (mCurrentInputBuffer) {
mCurrentInputBuffer->EvictAll();