--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
-- Frédéric Wang maths-informatique-jeux.com/blog/frederic
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jetpack+unsub...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
Just to be safe on common understanding: when you says "simple communication between the content and main script", I'm looking for communication between page script (e.g. from a <script> tag in HTML document) and main script, as at the moment I found no way to attach a content script to the HTML nor the nsIDOMWindow. Do you mean the same?
-- Frédéric Wang maths-informatique-jeux.com/blog/frederic
-- Frédéric Wang maths-informatique-jeux.com/blog/frederic
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
I think jpm would do that by means of the engines field in package.json
Have you tried building with
jpm xpi
as well?
-- Frédéric Wang maths-informatique-jeux.com/blog/frederic
Created a simple addon that requires page-mod. Packaged with --no-strip-xpi --force-use-bundled-sdk. Installed in TB 33. Apart from other informative messages on addon being installed, this is the main blurb coming out from TB error console (and also command prompt console):
1416589089139 addons.xpi DEBUG Calling bootstrap method startup on page-mod-addon-123@jetpack version 0.1Bootstrap error: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/system/xul-app.js:11:17loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:286:2@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/loader/cuddlefish.js:33:22loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:286:2startup@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:197:24
-- Frédéric Wang maths-informatique-jeux.com/blog/frederic
Did you take https://bugzilla.mozilla.org/attachment.cgi?id=8526697 that I mentioned earlier? Otherwise the dev version will raise js error on Thunderbird...
(also I believe cfx removes the logging from the final xpi)
Le 21/11/2014 18:05, Giuseppe Piscopo a écrit :
Uhm, actually that one comes out whether I require page-mod or not, so that must be something else.Anyway it looks like that's preventing my add-on to work, as I cannot even show a console log from main.js. This is my (non working) simple example:
main.js
'use strict';
const pageMod = require("sdk/page-mod");
console.log('******************* DONE *******************');
package.json{"name": "page-mod-addon","title": "page-mod-addon","id": "page-mod-addon-123","description": "Add-on to test page-mod in Thunderbird","author": "Giuseppe Piscopo","license": "MPL 2.0","version": "0.1"}
On Friday, November 21, 2014 6:00:03 PM UTC+1, Giuseppe Piscopo wrote:
Created a simple addon that requires page-mod. Packaged with --no-strip-xpi --force-use-bundled-sdk. Installed in TB 33. Apart from other informative messages on addon being installed, this is the main blurb coming out from TB error console (and also command prompt console):
1416589089139 addons.xpi DEBUG Calling bootstrap method startup on page-mod-addon-123@jetpack version 0.1Bootstrap error: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addon...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/system/xul-app.js:11:17loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addon...@jetpack.xpi!/bootstrap.js:286:2@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addon...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/loader/cuddlefish.js:33:22loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addon...@jetpack.xpi!/bootstrap.js:286:2startup@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addon...@jetpack.xpi!/bootstrap.js:197:24
XPI_callBootstrapMethod@resource://gre/modules/addons/XPIProvider.jsm:4303:8AI_startInstall/<@resource://gre/modules/addons/XPIProvider.jsm:5673:12TaskImpl_run@resource://gre/modules/Task.jsm:330:40Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:866:22this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:745:6
On Friday, November 21, 2014 5:42:46 PM UTC+1, Frédéric WANG wrote:I'm opening the add-on menu with
tools => add-ons
and then I can do "install an add-on from a file" normally.
Le 21/11/2014 17:36, Giuseppe Piscopo a écrit :
> Thanks for clarifying that. I'm trying with add-on SDK dev version as
> well.
> Just to know: when you pack the XPI (with the command you provided)
> how do you make that available into a (development) Thunderbird profile?
> In my case, I had to rename it and copy it under profile extensions
> directory. Is there a quicker way?
--
Frédéric Wang
maths-informatique-jeux.com/blog/frederic
No, actually I didn't. Now I applied that change to sdk\window\utils.js, and this is the "main" message from TB console output when installing XPI:
1416594983324 addons.xpi DEBUG Calling bootstrap method startup on page-mod-addon-123@jetpack version 0.1Bootstrap error: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/system/xul-app.js:11:17loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:286:2@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js -> resource://page-mod-addon-123-at-jetpack/addon-sdk/lib/sdk/loader/cuddlefish.js:33:22loadSandbox@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:286:2startup@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js:197:24
XPI_callBootstrapMethod@resource://gre/modules/addons/XPIProvider.jsm:4303:8AI_startInstall/<@resource://gre/modules/addons/XPIProvider.jsm:5673:12TaskImpl_run@resource://gre/modules/Task.jsm:330:40Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:866:22this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:745:6
which (as before) becomes a WARN with an exception:
1416594983494 addons.xpi WARN Exception running bootstrap method startup on page-mod-addon-123@jetpack: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///D:/WS/ThunderBird/Profiles/Thunderbird/qs1pt2h8.devTest/extensions/page-mod-addo...@jetpack.xpi!/bootstrap.js -> [...continue]