Hey Sammy, I think multiprocess is interfering. From what I can see, your API isn’t remoted. That is,you’ve implemented the DOM part and this runs in the child process only and doesn’t have a parent process component. From looking at SystemMessageInternal, it seems to be run only in the parent, so Im guessing that calling messenger.sendMessage in the child just won’t work.
Some things which lead me to this conclusion: 1. SystemMessageInternal.js seems to run in the parent. I _think_ sure following line only works in the parent process: http://mxr.mozilla.org/mozilla-central/source/dom/messages/SystemMessageInternal.js#16 <http://mxr.mozilla.org/mozilla-central/source/dom/messages/SystemMessageInternal.js#16> 2. All consumers seem to be parent process parts of their APIs (usually but not always, .jsm, or modules) http://mxr.mozilla.org/mozilla-central/search?find=%2F&string=mozilla.org%2Fsystem-message-internal <http://mxr.mozilla.org/mozilla-central/search?find=/&string=mozilla.org/system-message-internal> 3. One thing you might try is disabling oop. (change the gaia setting debug.oop.disabled to false). See https://developer.mozilla.org/de/Firefox_OS/Gaia/Hacking#Linux_B2G_Desktop_support <https://developer.mozilla.org/de/Firefox_OS/Gaia/Hacking#Linux_B2G_Desktop_support> for how to do that. That _should_ run your app in the parent instead of a OOP child process, and if that works, then this is your problem. I this might allow your non-remoted api to work in your app but not sure about this. If this is the problem, the solution is to properly remote your API, which means splitting it into two parts, and putting half in the child and half in the parent. E.g. see the alarms api: Child: http://mxr.mozilla.org/mozilla-central/source/dom/alarm/AlarmsManager.js <http://mxr.mozilla.org/mozilla-central/source/dom/alarm/AlarmsManager.js> Parent:http://mxr.mozilla.org/mozilla-central/source/dom/alarm/AlarmService.jsm <http://mxr.mozilla.org/mozilla-central/source/dom/alarm/AlarmService.jsm> Hope (I’m right and ) this helps! Paul > On 29 Jan 2016, at 9:26 am, Sammy Patenotte <[email protected]> wrote: > > Thanks for trying anyways :) > I'll keep looking! > > Best, > Sammy. > _______________________________________________ > dev-fxos mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-fxos
_______________________________________________ dev-fxos mailing list [email protected] https://lists.mozilla.org/listinfo/dev-fxos

