Closed Bug 786003 Opened 12 years ago Closed 12 years ago

Fix file handle leak in nsDOMFileReader, add tests to IndexedDB

Categories

(Core :: Storage: IndexedDB, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch, v1 (obsolete) (deleted) — Splinter Review
Tests use ArchiveReader and streaming from a Blob via XHR.
Attachment #655705 - Flags: review?(jst)
Attachment #655705 - Flags: review?(jst) → review+
Sorry, backed out because of timeouts in test_blob_simple.html on all Windows builds: https://hg.mozilla.org/integration/mozilla-inbound/rev/a7f0beb46374 https://tbpl.mozilla.org/php/getParsedLog.php?id=14757220&tree=Mozilla-Inbound The timeout happens right at the start of the test, so I'd guess it's caused by something in test_blob_archive.html (rather than the changes to test_blob_simple.html itself).
Summary: Add a few extra tests for blobs in IndexedDB → Fix file handle leak in nsDOMFileReader, add tests to IndexedDB
Attached patch Patch, v2 (deleted) — Splinter Review
Turns out that the problem was in nsDOMFileReader. It holds blobs and the channel (which holds the input stream via its hash bag) alive past the load event. Then the file handle stays open until CC gets it. Patch has r=jst.
Attachment #655705 - Attachment is obsolete: true
Attachment #656023 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Depends on: 807444
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: