Open
Bug 512650
Opened 15 years ago
Updated 2 years ago
Write access check for the install directory should be provided by a common component so other components don't have to perform checks
Categories
(Toolkit :: Startup and Profile System, defect, P2)
Toolkit
Startup and Profile System
Tracking
()
NEW
People
(Reporter: robert.strong.bugs, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [ts][i/o])
We have very basic write access check capability in Mozilla. Both the extension manager and app update perform write access checks for the install directory on startup. This should be provided by a single component (perhaps nsIXULAppInfo?) to lessen the times we hit the disk.
Comment 1•15 years ago
|
||
Is there a reason that we would still need the hacks we currently use to test write access once bug 437216 is fixed?
Updated•15 years ago
|
Whiteboard: [ts]
Reporter | ||
Comment 2•15 years ago
|
||
That would get us closer though there are other read only filesystems such as flash cards.
Comment 3•15 years ago
|
||
I guess what I'm trying to say is that I don't think we should need a separate component for this. nsILocalFile ought to be giving us all of the information we need using the appropriate OS system calls. Maybe we just put the hacky method into there for now.
Reporter | ||
Comment 4•15 years ago
|
||
I'm not so concerned about where it lives though I don't think atm that it should be in nsILocalFile since I think it should be specific for the install directory and the state should be cached to prevent multiple check. I don't think we need a separate component... it could be provided by nsIXULAppInfo for example.
Updated•15 years ago
|
Priority: -- → P2
Whiteboard: [ts] → [ts][i/o]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•