Closed
Bug 130683
Opened 22 years ago
Closed 22 years ago
File I/O service uses mime types service on the wrong thread
Categories
(Core :: Networking: File, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 127918
People
(Reporter: mscott, Assigned: dougt)
Details
I just tried clicking on a local file which required the mime type service. I noticed a bunch of thread safety assertions. It looks like: nsFileIO::Open is getting the nsIMimeService to figure out the mime type of the local file. It's accessing this service on the file transport thread. Unfortunately the mime service is not thread safe. It uses RDF to store user specified mime information. So I'm getting thread safety assertions in the parser when we try to load the rdf file for the datasource in addition to thread safety assertions in some I18N charset detection code which is brought in by RDF as well. We need to create a proxy on the file transport thread for the mime service.
Reporter | ||
Comment 1•22 years ago
|
||
nominating for nsbeta1 since accessing objects on the wrong thread can do bad things. For a test case: create a local html page which has a link to a local MP3 on it. Click on that MP3 link. Noticed the subsequent thread safety assertions.
Keywords: nsbeta1
Assignee | ||
Comment 2•22 years ago
|
||
I just checked in a fix for this last night on the trunk. Can you take a look at this and see if it fixes what you are seeing? 127918
Assignee | ||
Comment 3•22 years ago
|
||
dup *** This bug has been marked as a duplicate of 127918 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•