Bug 1571648 - Prevent OOMs from too many or too-big Decoder Doctor issues - r=bryce
commitf66f85f8696600931fb60360cbd5e94887407d96
authorGerald Squelart <gsquelart@mozilla.com>
Wed, 11 Sep 2019 16:55:35 +0000 (11 16:55 +0000)
committerGerald Squelart <gsquelart@mozilla.com>
Wed, 11 Sep 2019 16:55:35 +0000 (11 16:55 +0000)
tree236fa5d11a6477ef009f84f5612b834d27181cd8
parent9ead971a06e3fd554ea2ab2df6ef95678435b08b
Bug 1571648 - Prevent OOMs from too many or too-big Decoder Doctor issues - r=bryce

DecoderDoctorDiagnostics had no limitations on reported and stored issues.

New limitations, per document:
- No more than 128 issues are kept at any time.
- Issues older than 10 seconds are discarded.
- Issues containing too-long text (more than 2048 characters) are ignored.

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

--HG--
extra : moz-landing-system : lando
dom/media/doctor/DecoderDoctorDiagnostics.cpp