Closed Bug 1381766 Opened 7 years ago Closed 7 years ago

Remove wrong assertions from CacheFile::SetNetworkTimes

Categories

(Core :: Networking: Cache, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: michal, Assigned: michal)

References

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

Attached patch fixSplinter Review
Assertions at http://searchfox.org/mozilla-central/rev/01d27fdd3946f7210da91b18fcccca01d7324fe2/netwerk/cache2/CacheFile.cpp#1256 are wrong. kIndexTimeNotAvailable has a special meaning when reading the times from the index, but measured times are passed to CacheFile::SetNetworkTimes and 65535ms is a valid time.
Attachment #8887379 - Flags: review?(juhsu)
Comment on attachment 8887379 [details] [diff] [review]
fix

Review of attachment 8887379 [details] [diff] [review]:
-----------------------------------------------------------------

r=me
Thanks for catching this!
Attachment #8887379 - Flags: review?(juhsu) → review+
Assignee: nobody → michal.novotny
Whiteboard: [necko-active]
Pushed by mnovotny@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b0d89eca2c3c
Remove wrong assertions from CacheFile::SetNetworkTimes, r=junior
https://hg.mozilla.org/mozilla-central/rev/b0d89eca2c3c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: