Closed
Bug 1259094
Opened 9 years ago
Closed 9 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•9 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•9 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•9 years ago
|
||
That might help you getting tests running with Mulet, if you want to try this on try :)
Flags: needinfo?(aus)
Comment 4•9 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•9 years ago
|
||
MozReview-Commit-ID: KbOjcgzqs1C
Attachment #8734766 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 6•9 years ago
|
||
Fabrice, do you think it is too much hacky or we can move on with this?
Assignee | ||
Updated•9 years ago
|
Attachment #8734498 -
Attachment is obsolete: true
Assignee | ||
Comment 7•9 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•9 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•9 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•9 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•9 years ago
|
||
WIP with start of XPCOM C++
Attachment #8734783 -
Attachment is obsolete: true
Assignee | ||
Comment 12•9 years ago
|
||
Attachment #8735129 -
Attachment is obsolete: true
Assignee | ||
Comment 13•9 years ago
|
||
MozReview-Commit-ID: D52LOzYMDkF
Attachment #8735150 -
Attachment is obsolete: true
Attachment #8735152 -
Flags: review?(fabrice)
Assignee | ||
Comment 14•9 years ago
|
||
Comment 15•9 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•9 years ago
|
||
MozReview-Commit-ID: D52LOzYMDkF
Attachment #8735152 -
Attachment is obsolete: true
Attachment #8735492 -
Flags: review+
Assignee | ||
Comment 17•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 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
•