Closed Bug 759889 Opened 12 years ago Closed 8 years ago

Opening offline cache entries for writing still accesses the cache on the main thread

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: briansmith, Unassigned)

References

Details

(Whiteboard: [Snappy:p1])

+++ This bug was initially created as a clone of Bug #759886 +++

OnOfflineCacheEntryForWritingAvailable, which runs on the main thread, has this line:

        nsresult rv = mOfflineCacheEntry->GetLastModified(
                                            &mOfflineCacheLastModifiedTime);

The last modified time of the offline cache entry should be read on the cache thread instead of the main thread.

Also, nsHttpChannel::OpenOfflineCacheEntryForWriting() access the cache on the main thread.

These offline cache accesses need to be made to work similarly to the cache accesses in bug 722034.
Whiteboard: [Snappy]
Whiteboard: [Snappy] → [Snappy:p1]
app cache is going away
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.