Closed Bug 145760 Opened 22 years ago Closed 22 years ago

FORM control type=file keeps file open after submitting the form (file handle leak)

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 126829

People

(Reporter: jack_s_tan, Assigned: alexsavulov)

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461) BuildID: 20020510 When I submit a file via the <FORM> input type="file", the uploaded file remains open after submission and I cannot delete the file. I must exit the browser for the file to be closed. This occurs on Windows NT SP6 and Windows 2000 SP2. The program "handle" from http://www.sysinternals.com/ntw2k/freeware/handle.shtml shows that the file is in use by Mozilla. If I return to the form via the Back button and submit a different file, the first file is closed and the second file remains open. If I submit another file in a different tab, both files remain open. Leaving the submit response page and visiting a different URL does not cause the file to be closed. Reproducible: Always Steps to Reproduce: 1. Pick an HTML form that has a file control (e.g., http://validator.w3.org/file-upload.html). 2. Create a new file to upload. 3. Submit the form after selecting the new file. 4. Run the "handle" utility (or attempt to delete the file). This should show that the file is open (or should fail). 5. Exit Mozilla. 6. Run the "handle" utility (or attempt to delete the file) again. The file should not be in use (or should be successfully deleted). Actual Results: As described above in steps 4 and 6. Expected Results: The file should not be in use (or should have been deleted) in step 4.
Very strange, this bug has been fixed, and I can not reproduce it on recent builds. Try installing a new build in a new directory (not over an older build), and create a new profile. Please let me know immedeatly if it is still reproducable.
For reference the bug that fixed this problem was bug 126829.
I apologize for submitting a duplicate bug report. I downloaded 2002052008 for Windows and installed it in a new directory. The file now closes after a successful submission with 2002052008. I just tried 1.0rc2 again, and the file still stays open with that build (2002051006).
dup *** This bug has been marked as a duplicate of 126829 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.