Closed
Bug 326116
Opened 19 years ago
Closed 19 years ago
Check etag when downloading
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mvl, Assigned: mvl)
References
Details
Attachments
(1 file, 2 obsolete files)
9.20 KB,
patch
|
dmosedale
:
first-review+
|
Details | Diff | Splinter Review |
Should check the etag when downloading, so that we can detect if there have been any remote changes. If there were no changes, we can skip the parsing step.
Assignee | ||
Comment 1•19 years ago
|
||
patch should do the trick.
It will be a performance improvement on refresh, and is needed for doing timed reload, te keep some performance.
Attachment #210903 -
Flags: first-review?(dmose)
Comment 2•19 years ago
|
||
Attachment #210903 -
Attachment is obsolete: true
Attachment #214110 -
Flags: first-review?(dmose)
Attachment #210903 -
Flags: first-review?(dmose)
Comment 3•19 years ago
|
||
Comment on attachment 214110 [details] [diff] [review]
patch, v2 updated to not conflict with the trunk
> onStreamComplete: function(loader, ctxt, status, resultLength, result)
> {
> // Allow the hook to get needed data (like an etag) of the channel
>- this.mHooks.onAfterGet();
>+ var cont = this.mHooks.onAfterGet();
>+ if (!cont)
>+ return;
If we just return like this, won't we fail to call onLoad(), set the locked attribute, and process the queue?
Assignee | ||
Comment 4•19 years ago
|
||
I created an unlock function, that does the cleanup. Also moved the check for the empty string somewhat earlier in the function.
For symmetry, added a lock and isLocked function.
Attachment #214110 -
Attachment is obsolete: true
Attachment #214115 -
Flags: first-review?
Attachment #214110 -
Flags: first-review?(dmose)
Comment 5•19 years ago
|
||
Comment on attachment 214115 [details] [diff] [review]
patch v3, updated to review comment
r=dmose with s/cleanupLoading/unlock//.
Attachment #214115 -
Flags: first-review? → first-review+
Comment 6•19 years ago
|
||
Updated version of v3 patch landed; thanks for the patch, Michiel!
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•