Closed
Bug 746121
Opened 12 years ago
Closed 12 years ago
Updating the DirectoryProvider to look for user.js in /data/local on B2G phones
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
DeveloperPhone
People
(Reporter: etienne, Assigned: etienne)
Details
Attachments
(1 file, 1 obsolete file)
1.42 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
We're already doing this of the OfflineCache and webapps dir. This allows us to put everything in place when doing a make install-gaia even if the profile dir isn't created yet (on a first install). The user.js is generated by the Gaia makefile based on the various app manifests.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → etienne
Assignee | ||
Updated•12 years ago
|
Attachment #615693 -
Flags: review?(21)
Comment 2•12 years ago
|
||
Can you rename OFFLINE_PROFILE_DIR to LOCAL_DIR. It seems like everybody use it and it does not make sense to keep the name as if. Can you test your change with |GAIA_DOMAIN=localhost.org make && GAIA_DOMAIN=locahost.org make install-gaia| on the device and see if it works?
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #615693 -
Attachment is obsolete: true
Attachment #615693 -
Flags: review?(21)
Attachment #615721 -
Flags: review?(21)
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #2) > Can you test your change with |GAIA_DOMAIN=localhost.org make && > GAIA_DOMAIN=locahost.org make install-gaia| on the device and see if it > works? Yes it works!
Comment 5•12 years ago
|
||
Comment on attachment 615721 [details] [diff] [review] Patch v2 Nice, thanks.
Attachment #615721 -
Flags: review?(21) → review+
Good idea!
Comment 7•12 years ago
|
||
Comment on attachment 615721 [details] [diff] [review] Patch v2 Review of attachment 615721 [details] [diff] [review]: ----------------------------------------------------------------- ::: b2g/components/DirectoryProvider.js @@ +21,5 @@ > QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]), > > getFile: function dp_getFile(prop, persistent) { > #ifdef MOZ_WIDGET_GONK > + let localProps = ["cachePDir", "webappsDir", "PrefD"]; Did you mean "ProfD"?
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Philipp von Weitershausen [:philikon] from comment #7) > Comment on attachment 615721 [details] [diff] [review] > Patch v2 > > Review of attachment 615721 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: b2g/components/DirectoryProvider.js > @@ +21,5 @@ > > QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]), > > > > getFile: function dp_getFile(prop, persistent) { > > #ifdef MOZ_WIDGET_GONK > > + let localProps = ["cachePDir", "webappsDir", "PrefD"]; > > Did you mean "ProfD"? Don't think so: http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsAppDirectoryServiceDefs.h#96
Comment 9•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/70689bad7156
Status: NEW → ASSIGNED
Target Milestone: --- → DeveloperPhone
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/70689bad7156
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•