Closed
Bug 341975
Opened 19 years ago
Closed 19 years ago
"storage.sdb" (profile folder) should have a more explicit name
Categories
(Firefox :: Search, enhancement)
Tracking
()
RESOLVED
FIXED
Firefox 2 beta1
People
(Reporter: regis.caspar+bz, Assigned: regis.caspar+bz)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
|
1.42 KB,
patch
|
Gavin
:
review+
mconnor
:
superreview+
mconnor
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
After the landing of bug 335101, there is a new file in Firefox profile folder named "storage.sdb". I think this file should have a more explicit name allowing users to know what its purpose is. Perhaps "search_data.sqlite" or something like that?
-> Enhancement
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060618 Minefield/3.0a1 ID:2006061804 [cairo]
Comment 1•19 years ago
|
||
This should just be a matter of using openDatabase with an nsIFile from the profile, instead of openSpecialDatabase.
OS: Windows XP → All
Hardware: PC → All
Version: Trunk → 2.0 Branch
| Assignee | ||
Comment 2•19 years ago
|
||
This patch proposal use "search_datas.sqlite" as filename.
Comment 3•19 years ago
|
||
Comment on attachment 226113 [details] [diff] [review]
patch proposal
>+ var file = Cc["@mozilla.org/file/directory_service;1"]..
>+ getService(Ci.nsIProperties).
>+ get("ProfD", Ci.nsIFile);
Use the getDir() helper defined earlier in the file, and declare a NS_APP_USER_PROFILE_50_DIR constant near the other directory service keys at the top of the file. And don't double up the dots, and align the "getService" with "Cc", following the style of the rest of the file.
>+ file.append("search_datas.sqlite");
I'd prefer just "search.sqlite".
Attachment #226113 -
Flags: review-
| Assignee | ||
Comment 4•19 years ago
|
||
Update following gavin's comments.
Assignee: nobody → regis.caspar+bz
Status: NEW → ASSIGNED
Attachment #226115 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•19 years ago
|
Attachment #226113 -
Attachment is obsolete: true
Comment 5•19 years ago
|
||
Comment on attachment 226115 [details] [diff] [review]
patch proposal v2
>+ var file = getDir(NS_APP_USER_PROFILE_50_DIR);
> var dbService = Cc["@mozilla.org/storage/service;1"].
>+ getService(Ci.mozIStorageService);
>+ file.append("search.sqlite");
nit: move the |file.append| to right after the |var file|, no need to attach a new patch, I can fix on checkin.
Attachment #226115 -
Flags: superreview?(mconnor)
Attachment #226115 -
Flags: review?(gavin.sharp)
Attachment #226115 -
Flags: review+
Attachment #226115 -
Flags: approval-branch-1.8.1?(mconnor)
Updated•19 years ago
|
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 beta1
| Assignee | ||
Comment 6•19 years ago
|
||
(In reply to comment #5)
> nit: move the |file.append| to right after the |var file|, no need to attach a
> new patch, I can fix on checkin.
OK
Updated•19 years ago
|
Attachment #226115 -
Flags: superreview?(mconnor)
Attachment #226115 -
Flags: superreview+
Attachment #226115 -
Flags: approval-branch-1.8.1?(mconnor)
Attachment #226115 -
Flags: approval-branch-1.8.1+
Updated•19 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Comment 7•19 years ago
|
||
mozilla/browser/components/search/nsSearchService.js 1.1.2.34
Keywords: fixed1.8.1
Comment 8•19 years ago
|
||
mozilla/browser/components/search/nsSearchService.js 1.42
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•