Bug 1737837 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

FWIW, this is the assert would fail if there is the cache file gets corrupted.  If there aren't any clear correlations (to a particular URL or configuration), the "fix" might be to downgrade the MOZ_DIAGNOSTIC_ASSERT() into a plain MOZ_ASSERT() (which was already the motivation of having a MOZ_DIAGNOSTIC_ASSERT() instead of MOZ_RELEASE_ASSERT()); the `if (!ok)` branch right after the assert ensures graceful failure.
FWIW, this is the assert that would fail if the cache file gets corrupted.  If there aren't any clear correlations (to a particular URL or configuration), the "fix" might be to downgrade the MOZ_DIAGNOSTIC_ASSERT() into a plain MOZ_ASSERT() (which was already the motivation of having a MOZ_DIAGNOSTIC_ASSERT() instead of MOZ_RELEASE_ASSERT()); the `if (!ok)` branch right after the assert ensures graceful failure.

Back to Bug 1737837 Comment 3