Closed
Bug 1259094
Opened 8 years ago
Closed 8 years ago
Registering chrome gaia content should not be hardcoded
Categories
(Firefox OS Graveyard :: Runtime, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
(Whiteboard: fixed-in-pine)
Attachments
(1 file, 6 obsolete files)
8.80 KB,
patch
|
gerard-majax
:
review+
|
Details | Diff | Splinter Review |
Right now we need to change b2g/components/B2GComponents.manifest to change where Gaia content chrome URLs points to.
Comment 1•8 years ago
|
||
On eng builds, apps are located in /data/local/apps. I have to symlink /system/b2g/apps there to load Gaia.
Assignee | ||
Comment 2•8 years ago
|
||
This is WIP but it works for me on Mulet and device. On mulet, picks "apps" within the selected profile directory. On device, only picks from /system/b2g/apps (for now).
Assignee | ||
Comment 3•8 years ago
|
||
That might help you getting tests running with Mulet, if you want to try this on try :)
Flags: needinfo?(aus)
Comment 4•8 years ago
|
||
Oh yes, this TOTALLY works! Thank you so much for figuring this out! https://treeherder.mozilla.org/#/jobs?repo=try&revision=8104c4a15b32&filter-tier=1&filter-tier=2&filter-tier=3&selectedJob=18569897 We are obviously now seeing the real test failures, which is EXACTLY what we want! \o/!!!
Flags: needinfo?(aus)
Assignee | ||
Comment 5•8 years ago
|
||
MozReview-Commit-ID: KbOjcgzqs1C
Attachment #8734766 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 6•8 years ago
|
||
Fabrice, do you think it is too much hacky or we can move on with this?
Assignee | ||
Updated•8 years ago
|
Attachment #8734498 -
Attachment is obsolete: true
Assignee | ||
Comment 7•8 years ago
|
||
Fixing build on GCC 4.9
Attachment #8734766 -
Attachment is obsolete: true
Attachment #8734766 -
Flags: feedback?(fabrice)
Attachment #8734783 -
Flags: feedback?(fabrice)
Comment 8•8 years ago
|
||
Comment on attachment 8734783 [details] [diff] [review] Remove harcoded path to Gaia chrome package Review of attachment 8734783 [details] [diff] [review]: ----------------------------------------------------------------- Hm, no way to do that from an app-startup observer with all the code under b2g/ ?
Attachment #8734783 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 9•8 years ago
|
||
(In reply to [:fabrice] Fabrice Desré from comment #8) > Comment on attachment 8734783 [details] [diff] [review] > Remove harcoded path to Gaia chrome package > > Review of attachment 8734783 [details] [diff] [review]: > ----------------------------------------------------------------- > > Hm, no way to do that from an app-startup observer with all the code under > b2g/ ? As far as I can tell, I have not been able to find any interface usable from JS. So we need some C++ executed on both Mulet and B2G, and this was the best I could find. I don't think |b2g/app/nsBrowserApp.cpp| is being used.
Assignee | ||
Comment 10•8 years ago
|
||
(In reply to [:fabrice] Fabrice Desré from comment #8) > Comment on attachment 8734783 [details] [diff] [review] > Remove harcoded path to Gaia chrome package > > Review of attachment 8734783 [details] [diff] [review]: > ----------------------------------------------------------------- > > Hm, no way to do that from an app-startup observer with all the code under > b2g/ ? I have a preliminary (hacked) XPCOM written in C++ and triggered by "profile-after-change" that is able to register a chrome gaia package. So I can rewrite this in a nicer way and avoid hacking around toolkit/xre/nsAppRunner.cpp.
Assignee | ||
Comment 11•8 years ago
|
||
WIP with start of XPCOM C++
Attachment #8734783 -
Attachment is obsolete: true
Assignee | ||
Comment 12•8 years ago
|
||
Attachment #8735129 -
Attachment is obsolete: true
Assignee | ||
Comment 13•8 years ago
|
||
MozReview-Commit-ID: D52LOzYMDkF
Attachment #8735150 -
Attachment is obsolete: true
Attachment #8735152 -
Flags: review?(fabrice)
Assignee | ||
Comment 14•8 years ago
|
||
https://hg.mozilla.org/try/rev/57c1535c4d97
Comment 15•8 years ago
|
||
Comment on attachment 8735152 [details] [diff] [review] Remove harcoded path to Gaia chrome package r?fabrice Review of attachment 8735152 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed. ::: b2g/components/moz.build @@ +90,5 @@ > + > +XPIDL_MODULE = 'gaia_chrome' > + > +UNIFIED_SOURCES += [ > + 'nsGaiaChrome.cpp' nit: no need for a `ns` prefix. ::: b2g/components/nsGaiaChrome.cpp @@ +66,5 @@ > + locationDetection->Append(mAppsDir); > + nsresult appsInSystem = EnsureIsDirectory(locationDetection); > + locationDetection->InitWithPath(mDataRoot); > + locationDetection->Append(mAppsDir); > + nsresult appsInData = EnsureIsDirectory(locationDetection); nit: too many spaces after appsInData @@ +89,5 @@ > + return NS_OK; > +} > + > +nsresult > +nsGaiaChrome::EnsureIsDirectory(nsIFile* aPath) I don't see any reason to not return a boolean.
Attachment #8735152 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 16•8 years ago
|
||
MozReview-Commit-ID: D52LOzYMDkF
Attachment #8735152 -
Attachment is obsolete: true
Attachment #8735492 -
Flags: review+
Assignee | ||
Comment 17•8 years ago
|
||
https://hg.mozilla.org/projects/pine/rev/ccddb6dcc121
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-pine
You need to log in
before you can comment on or make changes to this bug.
Description
•