Hi Fabrice, Thank you for your hint! We had reviewed the code of __exposedProps__ property, and solved the problem.
Thanks! (2013/02/16 2:57), Fabrice Desre wrote:
On 02/15/2013 05:20 AM, Tsuneyuki Ito wrote:Hello, In order to get a status/information from each apps, we're trying to add an original XPIDL which is accessable from navigator. And we have problems with implementing XPIDL. Could tell us following items in detail? - How to make Makefile.in for XPIDL - "NEWMODULE.manifest" and its Makefile.in - Any other files that needs to be modified. Following is the example usecase of the XPIDL. mozAppsManager is pseudo name, and trying to get information from Gallery app. - navigator.mozAppsManager.getApplicationInfo('app://gallery.gaiamobile.org/manifest.webapp') And then, we're facing following error. [JavaScript Error: "Error: Permission denied for <app://kapp.gaiamobile.org> to create wrapper for object of class Apps Manager"It's hard to say what's wrong without seeing your code. but you need to wrap your js objects when they cross the chrome -> content boundary. If you're exposing plain JS object (ie not xpcom objects with a classInfo), these objects must have an __exposedProps__ property. See examples at https://mxr.mozilla.org/mozilla-central/search?string=exposedProp Fabrice
-- KDDI Technology Tsuneyuki ITO +81-90-9314-3849 [email protected] _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
