Commit b556c7ea authored by Committed by Jonathan AlmeidaBrowse files
DiskCache: Synchronize cache writes. Bail out if cache cannot be written.
Fixes https://github.com/mozilla-mobile/fenix/issues/3211 There were two issues with the previous implementation: * We can't write to the cache concurrently and in this case edit() will return null. We should synchronize our writes to avoid not writing anything to disk while another write is in-flight. * In cases where edit() still returns null (stale snapshot) we just bail out.