Closed
Bug 1412822
Opened 6 years ago
Closed 6 years ago
MutableBlobStorage should release the FileDescriptor when an error occurs
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file)
5.27 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
This is a follow up of bug 1411578.
Assignee | ||
Comment 1•6 years ago
|
||
If we don't release the FD before sending the last message to the parent actor, this actor will not be able to remove the temporary file on windows.
Assignee: nobody → amarchesini
Attachment #8923358 -
Flags: review?(bugs)
Comment 2•6 years ago
|
||
For MediaRecorder it looks like an error in MutableBlobStorage is not propagated to the recorder until the recorder asks for a blob (which could be hours later once the recording is finished). We'd need to get informed as soon as possible. Thoughts on fixing this baku?
Flags: needinfo?(amarchesini)
Comment 3•6 years ago
|
||
Comment on attachment 8923358 [details] [diff] [review] mutable2.patch ># HG changeset patch ># User Andrea Marchesini <amarchesini@mozilla.com> ># Parent 83996ad23d5057b632dc653880123cb8d2d26b4c > >diff --git a/dom/file/MutableBlobStorage.cpp b/dom/file/MutableBlobStorage.cpp >--- a/dom/file/MutableBlobStorage.cpp >+++ b/dom/file/MutableBlobStorage.cpp >@@ -100,86 +100,84 @@ private: > }; > > // This runnable moves a buffer to the IO thread and there, it writes it into > // the temporary file. please improve this to indicate that the file may be closed too, since closing is a bit surprising result of this runnable
Attachment #8923358 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 4•6 years ago
|
||
> [...] soon as possible. Thoughts on fixing this baku?
Right! Let's do it in a separate bug.
Flags: needinfo?(amarchesini)
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e064bf3ca8e1 MutableBlobStorage should release the FileDescriptor when an error occurs, r=smaug
![]() |
||
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e064bf3ca8e1
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•6 years ago
|
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e064bf3ca8e1
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•