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)

2.0 Branch
enhancement
Not set
normal

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)

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]
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
Attached patch patch proposal (obsolete) — Splinter Review
This patch proposal use "search_datas.sqlite" as filename.
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-
Update following gavin's comments.
Assignee: nobody → regis.caspar+bz
Status: NEW → ASSIGNED
Attachment #226115 - Flags: review?(gavin.sharp)
Attachment #226113 - Attachment is obsolete: true
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)
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 beta1
(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
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+
Flags: blocking-firefox2? → blocking-firefox2+
mozilla/browser/components/search/nsSearchService.js 1.1.2.34
Keywords: fixed1.8.1
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.

Attachment

General

Creator:
Created:
Updated:
Size: