Closed
Bug 462549
Opened 16 years ago
Closed 16 years ago
Verify that an appcache manifest hasn't changed at the end of an update
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
People
(Reporter: dcamp, Assigned: dcamp)
Details
Attachments
(1 file, 2 obsolete files)
19.27 KB,
patch
|
Details | Diff | Splinter Review |
The offline spec requires that at the end of a successful cache update, we re-download the manifest to make sure it hasn't changed. This is to prevent us from grabbing a partial snapshot of the app during a server push.
Attachment #345762 -
Flags: superreview?(cbiesinger)
Attachment #345762 -
Flags: review?(cbiesinger)
Assignee | ||
Updated•16 years ago
|
Attachment #345762 -
Attachment is patch: true
Attachment #345762 -
Attachment mime type: application/octet-stream → text/plain
Comment 1•16 years ago
|
||
Comment on attachment 345762 [details] [diff] [review] v1 +NS_IMPL_ISUPPORTS4(nsManifestCheck, + nsIRequestObserver, + nsIStreamListener, + nsIChannelEventSink, + nsIInterfaceRequestor); shouldn't put a semicolon at the end here, some compilers don't like that + nsCString foo; + foo.Assign(aFromSegment, aCount); this seems unused? + PRUint32 bytesRead = 0; + aStream->ReadSegments(ReadManifest, this, aCount, &bytesRead); you don't have to initialize bytesRead + // Redirects should cause the load (and therefore the update) to fail. + return NS_ERROR_FAILURE; you have to allow REDIRECT_INTERNAL redirects here
Attachment #345762 -
Flags: superreview?(cbiesinger)
Attachment #345762 -
Flags: superreview+
Attachment #345762 -
Flags: review?(cbiesinger)
Attachment #345762 -
Flags: review+
Assignee | ||
Comment 2•16 years ago
|
||
Includes the review fixes and properly includes the test file.
Attachment #345762 -
Attachment is obsolete: true
Assignee | ||
Comment 3•16 years ago
|
||
err, this was the new patch.
Attachment #346774 -
Attachment is obsolete: true
Assignee | ||
Comment 4•16 years ago
|
||
Landed as http://hg.mozilla.org/mozilla-central/rev/037702607ad8
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•