Closed
Bug 337324
Opened 18 years ago
Closed 18 years ago
move Firefox-specific microsummary directory defs to nsBrowserDirectoryProvider
Categories
(Firefox Graveyard :: Microsummaries, defect)
Firefox Graveyard
Microsummaries
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 2 beta1
People
(Reporter: myk, Assigned: myk)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 2 obsolete files)
8.98 KB,
patch
|
benjamin
:
review+
mconnor
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
Microsummary directories are defined in nsDirectoryServiceDefs, but on IRC bsmedberg says "we have nsBrowserDirectoryProvider for firefox-specific keys,and the #define should be in a firefox-specific place, either in some nsMicroSummaries.h or nsBrowserCompsCID.h".
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → Firefox 2 beta1
Assignee | ||
Comment 1•18 years ago
|
||
This patch moves the microsummary directories to nsBrowserDirectoryProvider. For filename consistency with nsDirectoryServiceDefs.h and nsAppDirectoryServiceDefs.h, I put the microsummary defines into the new file nsBrowserDirectoryServiceDefs.h. I also copied nsAppFileLocationProvider::CloneMozBinDirectory() into nsBrowserDirectoryProvider. And I fixed a hardcoded reference to the UsrMicsumDefs directory in nsMicrosummaryService.js.in. Do I still need to provide a Mac OS 9-specific (i.e. XP_MAC) name for the microsummary generators directory, given that Firefox no longer supports that OS?
Attachment #223989 -
Flags: review?(benjamin)
Assignee | ||
Updated•18 years ago
|
Whiteboard: [swag: 0.25d]
Comment 2•18 years ago
|
||
myk, I don't think you want the copying-from-defaults behavior of the lower section of browserdirectory, so I remade your patch to shortcut everything in the first set of if/else blocks. You don't need CloneMozBinDirectory, you can safely just use NS_XPCOM_CURRENT_PROCESS_DIR
Attachment #223989 -
Attachment is obsolete: true
Attachment #224894 -
Flags: review?(myk)
Attachment #223989 -
Flags: review?(benjamin)
Assignee | ||
Comment 3•18 years ago
|
||
> myk, I don't think you want the copying-from-defaults behavior of the lower
> section of browserdirectory, so I remade your patch to shortcut everything in
> the first set of if/else blocks. You don't need CloneMozBinDirectory, you can
> safely just use NS_XPCOM_CURRENT_PROCESS_DIR
Yeah, that all seems right to me and has the corollary benefit of making the logic simpler.
This patch looks good, except that we probably don't need to do #if defined(XP_MAC), since browser doesn't support Mac OS 9-, and it almost certainly never will. Also, we don't need to #include nsILocalFile.h now that we aren't adding CloneMozBinDirectory.
Here's an updated patch with these changes.
Attachment #224894 -
Attachment is obsolete: true
Attachment #224913 -
Flags: review?(benjamin)
Attachment #224894 -
Flags: review?(myk)
Updated•18 years ago
|
Attachment #224913 -
Flags: review?(benjamin) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #224913 -
Flags: approval-branch-1.8.1?(mconnor)
Updated•18 years ago
|
Attachment #224913 -
Flags: approval-branch-1.8.1?(mconnor) → approval-branch-1.8.1+
Assignee | ||
Comment 4•18 years ago
|
||
Fix checked in to trunk and 1.8 branch.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Keywords: fixed1.8.1
Assignee | ||
Updated•18 years ago
|
Whiteboard: [swag: 0.25d]
Assignee | ||
Updated•18 years ago
|
Component: Bookmarks → Microsummaries
Updated•8 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•