Closed
Bug 661583
Opened 14 years ago
Closed 14 years ago
xhr.response needs to hold on to the cache token when the responseType is blob.
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: khuey, Assigned: emk)
References
Details
Attachments
(2 files, 3 obsolete files)
|
2.79 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
|
2.73 KB,
patch
|
khuey
:
review+
christian
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
From nsICachingChannel:
123 /**
124 * Get the "file" where the cached data can be found. This is valid for
125 * as long as a reference to the cache token is held. This may return
126 * an error if cacheAsFile is false.
127 */
128 readonly attribute nsIFile cacheFile;
If we're not holding the cache token alive, this file might be removed from the disk. The easiest way forward here is probably to make nsDOMFile able to hold onto an opaque nsISupports pointer, and then give the constructor the cacheToken from the caching channel.
| Reporter | ||
Comment 1•14 years ago
|
||
Also, we have to ensure that slices hold onto the cache token as well.
Masatoshi: Do you think you'd be able to get to this? I think we should fix this for FF6 or disable the feature.
tracking-firefox6:
--- → ?
Updated•14 years ago
|
| Assignee | ||
Comment 3•14 years ago
|
||
Please apply this on top of the patch of bug 661582.
| Assignee | ||
Comment 4•14 years ago
|
||
Attachment #537172 -
Attachment is obsolete: true
Attachment #537172 -
Flags: review?(jonas)
Attachment #537305 -
Flags: review?(jonas)
| Assignee | ||
Comment 5•14 years ago
|
||
Attachment #537305 -
Attachment is obsolete: true
Attachment #537305 -
Flags: review?(jonas)
Attachment #537313 -
Flags: review?(jonas)
Comment on attachment 537313 [details] [diff] [review]
patch v2.1
Looks good, but add the new aCacheToken argument to the first constructor instead, as per the review of bug 661582.
Attachment #537313 -
Flags: review?(jonas) → review+
| Assignee | ||
Comment 7•14 years ago
|
||
Rebased to the latest bug 661583 patch.
Carrying forward r+.
Attachment #537313 -
Attachment is obsolete: true
Attachment #540336 -
Flags: review+
| Reporter | ||
Comment 8•14 years ago
|
||
This is Masatoshi's patch reordered to not depend on the patch in Bug 661582.
Attachment #543237 -
Flags: review+
| Reporter | ||
Comment 9•14 years ago
|
||
Comment on attachment 543237 [details] [diff] [review]
Reordered patch
Drivers, we will want to take this patch for Firefox 6 to ensure that a File object's actual file on disk is not removed from the cache depending on the whims of GC behavior. I believe the risk of this patch is very low.
Attachment #543237 -
Flags: approval-mozilla-aurora?
Comment 10•14 years ago
|
||
Comment on attachment 543237 [details] [diff] [review]
Reordered patch
Approved for releases/mozilla-aurora. Please land asap before 2011-07-05 @ 9:00 am PDT.
Attachment #543237 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Reporter | ||
Comment 11•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/c3d3292fbd1e
http://hg.mozilla.org/releases/mozilla-aurora/rev/c660b06ec3b3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
| Reporter | ||
Updated•14 years ago
|
status-firefox6:
--- → fixed
Comment 12•14 years ago
|
||
Backed out from mozilla-central during investigation of Android browser-chrome test failures:
http://hg.mozilla.org/mozilla-central/rev/00bb08972e46
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•14 years ago
|
status-firefox7:
--- → affected
| Reporter | ||
Comment 13•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 14•14 years ago
|
||
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Could you please provide a test case in order to have this issue verified?
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•