[jetpack] Jetpack SDK 0.3 release candidate 1 now available!

1 view
Skip to first unread message

Myk Melez

unread,
Apr 21, 2010, 7:16:16 PM4/21/10
to mozilla-la...@googlegroups.com
Hi all,

We've just released the first release candidate of Jetpack SDK 0.3! Download it as a tarball or ZIP archive via the following links:

  https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3rc1.tar.gz
  https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3rc1.zip

The Jetpack SDK 0.3 contains the first two high-level APIs we've been developing: an API in the "context-menu" module for adding items to the context menu for web pages, and an API in the "self" module for accessing resources bundled with an add-on.

It also includes a number of other enhancements and bug fixes, including additional low-level APIs to make it easier to develop the high-level ones.

Remember that you'll also need Python 2.5 or later on your system. Once you have that, just unpack the tarball/ZIP archive and check out the README.txt file to get started.

We'd love to hear any feedback you have about this build! Feel free to post it to this discussion forum or file a bug in Bugzilla. And to keep a closer eye on the status of the release, check out the release tracking bug 560895.

- Myk, on behalf of Team Jetpack

--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To post to this group, send email to mozilla-la...@googlegroups.com.
To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.

johnjbarton

unread,
Apr 22, 2010, 12:21:59 AM4/22/10
to mozilla-labs-jetpack


On Apr 21, 4:16 pm, Myk Melez <m...@mozilla.org> wrote:
>   Hi all,
>
> We've just released the first release candidate of Jetpack SDK 0.3!
> Download it as a tarball or ZIP archive via the following links:
>
> https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3r...https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3r...
>
> The Jetpack SDK 0.3 contains the first two high-level APIs we've been
> developing: an API in the "context-menu" module for adding items to the
> context menu for web pages, and an API in the "self" module for
> accessing resources bundled with an add-on.
>
> It also includes a number of other enhancements and bug fixes, including
> additional low-level APIs to make it easier to develop the high-level ones.
>
> Remember that you'll also need Python <http://www.python.org/> 2.5 or
> later on your system. Once you have that, just unpack the tarball/ZIP
> archive and check out the README.txt file to get started.

? Python is needed to install the SDK or just to develop it or with
it?

>
> We'd love to hear any feedback you have about this build! Feel free to
> post it to this discussion forum or file a bug in Bugzilla

Python? There, you have it ;-)
jjb

> <https://bugzilla.mozilla.org/enter_bug.cgi?product=Mozilla%20Labs&com...>.
> And to keep a closer eye on the status of the release, check out the
> release tracking bug 560895
> <https://bugzilla.mozilla.org/show_bug.cgi?id=560895>.

johnjbarton

unread,
Apr 22, 2010, 12:35:47 AM4/22/10
to mozilla-labs-jetpack


On Apr 21, 4:16 pm, Myk Melez <m...@mozilla.org> wrote:
>   Hi all,
>
> We've just released the first release candidate of Jetpack SDK 0.3!

Ok, I take back what I said about Python. Because I don't understand
what I got when I downloaded these files.

I want to install something that will determine if jetpack or a
jetpack will be compatible with Firebug. (jetpack prototype was
certainly not).

jjb

Erik Vold

unread,
Apr 22, 2010, 12:47:25 AM4/22/10
to mozilla-labs-jetpack
On Apr 21, 9:35 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:
> I want to install something that will determine if jetpack or a
> jetpack will be compatible with Firebug.

Do you want an example jetpack to play with?

E

Dietrich Ayala

unread,
Apr 22, 2010, 2:07:50 AM4/22/10
to mozilla-la...@googlegroups.com
John,

There's a README file in the root directory of the SDK. To learn what
the SDK is and how it works, follow the instructions there.

Whether an add-on created using the SDK is compatible with Firebug is
a different question.

I recommend you use the tutorial in the SDK documentation to generate
an extension with the SDK and do your testing with it. If you
encounter compatibility problems, please file a bug here:

https://bugzilla.mozilla.org/enter_bug.cgi?product=Mozilla%20Labs&component=Jetpack%20SDK

Thanks!

-d

johnjbarton

unread,
Apr 22, 2010, 11:44:45 AM4/22/10
to mozilla-labs-jetpack


On Apr 21, 11:07 pm, Dietrich Ayala <auton...@gmail.com> wrote:
> John,
>
> There's a README file in the root directory of the SDK. To learn what
> the SDK is and how it works, follow the instructions there.

Dietrich the README file is not readable because its content is all on
one single line.

>
> Whether an add-on created using the SDK is compatible with Firebug is
> a different question.
>
> I recommend you use the tutorial in the SDK documentation to generate
> an extension with the SDK and do your testing with it. If you
> encounter compatibility problems, please file a bug here:
>
> https://bugzilla.mozilla.org/enter_bug.cgi?product=Mozilla%20Labs&com...

We need a strategy to deal with the memory profiler dll that Firebug
will be shipping in memory bug.

jjb

>
> Thanks!
>
> -d
>
> On Wed, Apr 21, 2010 at 9:35 PM, johnjbarton
>
>
>
> <johnjbar...@johnjbarton.com> wrote:
>
> > On Apr 21, 4:16 pm, Myk Melez <m...@mozilla.org> wrote:
> >>   Hi all,
>
> >> We've just released the first release candidate of Jetpack SDK 0.3!
>
> > Ok, I take back what I said about Python. Because I don't understand
> > what I got when I downloaded these files.
>
> > I want to install something that will determine if jetpack or a
> > jetpack will be compatible with Firebug. (jetpack prototype was
> > certainly not).
>
> > jjb
>
> > --
> > You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
> > To post to this group, send email to mozilla-la...@googlegroups.com.
> > To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/mozilla-labs-jetpack?hl=en.

johnjbarton

unread,
Apr 22, 2010, 11:45:38 AM4/22/10
to mozilla-labs-jetpack


On Apr 21, 9:47 pm, Erik Vold <erikvv...@gmail.com> wrote:
> On Apr 21, 9:35 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:
>
> > I want to install something that will determine if jetpack or a
> > jetpack will be compatible with Firebug.
>
> Do you want an example jetpack to play with?

yes
jjb

Christian Sonne

unread,
Apr 22, 2010, 12:56:12 PM4/22/10
to mozilla-la...@googlegroups.com
On Thu, Apr 22, 2010 at 5:44 PM, johnjbarton <johnj...@johnjbarton.com> wrote:


On Apr 21, 11:07 pm, Dietrich Ayala <auton...@gmail.com> wrote:
> John,
>
> There's a README file in the root directory of the SDK. To learn what
> the SDK is and how it works, follow the instructions there.

Dietrich the README file is not readable because its content is all on
one single line.


I suggest opening it in something else than notepad. Wordpad should do for this exercise.

The problem is caused by different operating systems using different methods for linebreaks. Most editors are smart enough to recognize this fact, but notepad alas is not.

Best regards
-- cers / Christian Sonne
 

johnjbarton

unread,
Apr 22, 2010, 1:15:13 PM4/22/10
to mozilla-labs-jetpack


On Apr 22, 9:56 am, Christian Sonne <freakc...@gmail.com> wrote:
> On Thu, Apr 22, 2010 at 5:44 PM, johnjbarton <johnjbar...@johnjbarton.com>wrote:
>
>
>
> > On Apr 21, 11:07 pm, Dietrich Ayala <auton...@gmail.com> wrote:
> > > John,
>
> > > There's a README file in the root directory of the SDK. To learn what
> > > the SDK is and how it works, follow the instructions there.
>
> > Dietrich the README file is not readable because its content is all on
> > one single line.
>
> I suggest opening it in something else than notepad. Wordpad should do for
> this exercise.

As feedback, I disagree. A README should just work on Windows, the
system most users will have.

More important feedback: users (devs I guess) should not have to build
the docs to get started. The readme should just be an html file with
the docs. Some of us will never get past the first steps. For example
I would not install python to see if jetpack is for me. In my opinion,
jetpack should target any dev who installs Firefox, not be trying to
select devs based on their interest in linux and python. (In fact I
don't think you should even require a file system).

>
> The problem is caused by different operating systems using different methods
> for linebreaks. Most editors are smart enough to recognize this fact, but
> notepad alas is not.

But most devs will launch notepad when they click on the readme, so
most editors are not relevant.

jjb
> > mozilla-labs-jet...@googlegroups.com<mozilla-labs-jetpack%2Bunsu...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "mozilla-labs-jetpack" group.
> > > To post to this group, send email to
> > mozilla-la...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > mozilla-labs-jet...@googlegroups.com<mozilla-labs-jetpack%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mozilla-labs-jetpack" group.
> > To post to this group, send email to mozilla-la...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to
> > mozilla-labs-jet...@googlegroups.com<mozilla-labs-jetpack%2Bunsu...@googlegroups.com>
> > .

Dietrich Ayala

unread,
Apr 22, 2010, 1:22:15 PM4/22/10
to mozilla-la...@googlegroups.com
> We need a strategy to deal with the memory profiler dll that Firebug
> will be shipping in memory bug.

Thanks, good to know! Please file a bug that describes what the
incompatibility is.

-d

Erik Vold

unread,
Apr 22, 2010, 5:21:47 PM4/22/10
to mozilla-labs-jetpack
On Apr 22, 8:45 am, johnjbarton <johnjbar...@johnjbarton.com> wrote:
> On Apr 21, 9:47 pm, Erik Vold <erikvv...@gmail.com> wrote:
>
> > On Apr 21, 9:35 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:
>
> > > I want to install something that will determine if jetpack or a
> > > jetpack will be compatible with Firebug.
>
> > Do you want an example jetpack to play with?
>
> yes

I wrote a simple jetpack a couple of days ago that you can use:

http://github.com/erikvold/view-page-source-in-tab-jetpack

It's a remake of http://jetpackgallery.mozillalabs.com/jetpacks/113

You can download the xpi generated here:

http://github.com/downloads/erikvold/view-page-source-in-tab-jetpack/view-page-source-in-tab-v0.1.xpi

It's also on AMO, but I had to alter the install.rdf slightly to get
it on AMO, so it's not exactly the file generated by cfx:

https://addons.mozilla.org/en-US/firefox/addon/151809

To build the source yourself (on windows):

1. checkout the source code for the jetpack-sdk and my jetpack
anywhere.
2. in cmd.exe navigate to the jetpack-sdk folder, then type `bin
\activate`
3. now navigate to the view-page-source-in-tab folder and type `cfx
run -a firefox` to open a blank firefox profile and test the extension
4. run `cfx xpi` to generate an xpi

Run `cfx docs` anytime after step 2 for more information.

I hope that helps!

Atul Varma

unread,
Apr 22, 2010, 5:50:39 PM4/22/10
to mozilla-la...@googlegroups.com, johnjbarton
You're welcome to also read the SDK docs on the web:

https://jetpack.mozillalabs.com/sdk/latest/docs/

Unfortunately, we've only got the latest 0.2 docs on there right now,
but will be hosting the latest trunk soon too.

- Atul

Myk Melez

unread,
Apr 22, 2010, 7:09:45 PM4/22/10
to mozilla-la...@googlegroups.com, Erik Vold
On 04/22/2010 02:21 PM, Erik Vold wrote:
> It's also on AMO, but I had to alter the install.rdf slightly to get
> it on AMO, so it's not exactly the file generated by cfx:
What did you have to change to get it on AMO?

-myk

Erik Vold

unread,
Apr 23, 2010, 2:33:34 AM4/23/10
to mozilla-labs-jetpack
On Apr 22, 4:09 pm, Myk Melez <m...@mozilla.org> wrote:
>   On 04/22/2010 02:21 PM, Erik Vold wrote:> I had to alter the install.rdf slightly to get
> > it on AMO, so it's not exactly the file generated by cfx:
>
> What did you have to change to get it on AMO?

I got the following errors when trying to upload a cfx generated xpi:

- "The add-on failed a validation test: Add-ons cannot use an external
updateURL. Please remove this from install.rdf and try again."
- "The add-on failed a validation test: The following errors were
found in install.rdf:
3.7.* is not a valid version for Firefox<br>1.* is not a valid
version for Fennec
3.1.* is not a valid version for Thunderbird
Please see <a href="https://addons.mozilla.org/en-US/firefox/pages/
appversions">this page</a> for reference."
- "Please check that the following fields are valid and not blank:
homepage"

These are the changes that I made:

15,33c15
- <em:maxVersion>3.7.*</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- <!-- Fennec -->
- <em:targetApplication>
- <Description>
- <em:id>{a23983c0-fd0e-11dc-95ff-0800200c9a66}</em:id>
- <em:minVersion>0.1</em:minVersion>
- <em:maxVersion>1.*</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- <!-- Thunderbird -->
- <em:targetApplication>
- <Description>
- <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
- <em:minVersion>3.0b3</em:minVersion>
- <em:maxVersion>3.1.*</em:maxVersion>
---
+ <em:maxVersion>3.6.*</em:maxVersion>
42d23
- <em:homepageURL/>
44d24
- <em:updateURL/>

I basically removed the updateURL and homepageURL, then removed
support for Thunderbird and Fennec and changed the FF max version to
3.6.*

The package specification docs page https://jetpack.mozillalabs.com/sdk/0.2/docs/#guide/package-spec
does not mention a way to change the updateURL or homepageURL.

E

johnjbarton

unread,
Apr 23, 2010, 10:58:08 AM4/23/10
to mozilla-labs-jetpack


On Apr 22, 2:21 pm, Erik Vold <erikvv...@gmail.com> wrote:
> On Apr 22, 8:45 am, johnjbarton <johnjbar...@johnjbarton.com> wrote:
>
> > On Apr 21, 9:47 pm, Erik Vold <erikvv...@gmail.com> wrote:
>
> > > On Apr 21, 9:35 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:
>
> > > > I want to install something that will determine if jetpack or a
> > > > jetpack will be compatible with Firebug.
>
> > > Do you want an example jetpack to play with?
>
> > yes
>
> I wrote a simple jetpack a couple of days ago that you can use:
>
> http://github.com/erikvold/view-page-source-in-tab-jetpack
>
> It's a remake ofhttp://jetpackgallery.mozillalabs.com/jetpacks/113
>
> You can download the xpi generated here:
>
> http://github.com/downloads/erikvold/view-page-source-in-tab-jetpack/...
>
> It's also on AMO, but I had to alter the install.rdf slightly to get
> it on AMO, so it's not exactly the file generated by cfx:
>
> https://addons.mozilla.org/en-US/firefox/addon/151809

Thanks Erik. I used this addon to verify that jetpack-sdk 0.3 has bug
560843
https://bugzilla.mozilla.org/show_bug.cgi?id=560843

jjb

johnjbarton

unread,
Apr 23, 2010, 11:06:14 AM4/23/10
to mozilla-labs-jetpack


On Apr 21, 4:16 pm, Myk Melez <m...@mozilla.org> wrote:
>   Hi all,
>
> We've just released the first release candidate of Jetpack SDK 0.3!
> Download it as a tarball or ZIP archive via the following links:
>
> https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3r...https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-0.3r...
>
> The Jetpack SDK 0.3 contains the first two high-level APIs we've been
> developing: an API in the "context-menu" module for adding items to the
> context menu for web pages, and an API in the "self" module for
> accessing resources bundled with an add-on.
>
> It also includes a number of other enhancements and bug fixes, including
> additional low-level APIs to make it easier to develop the high-level ones.
>
> Remember that you'll also need Python <http://www.python.org/> 2.5 or
> later on your system. Once you have that, just unpack the tarball/ZIP
> archive and check out the README.txt file to get started.
>
> We'd love to hear any feedback you have about this build! Feel free to
> post it to this discussion forum

Based on the jetpack example created by Erik Vold, it appears that the
SDK sets javascript.options.strict to true. It's not practical to set
this value true when running Firebug or when real web pages.

jjb

> or file a bug in Bugzilla
> <https://bugzilla.mozilla.org/enter_bug.cgi?product=Mozilla%20Labs&com...>.
> And to keep a closer eye on the status of the release, check out the
> release tracking bug 560895
> <https://bugzilla.mozilla.org/show_bug.cgi?id=560895>.

Myk Melez

unread,
Apr 23, 2010, 8:27:02 PM4/23/10
to mozilla-la...@googlegroups.com, Erik Vold
On 04/22/2010 11:33 PM, Erik Vold wrote:
I got the following errors when trying to upload a cfx generated xpi:
Thanks for the details! I filed bug 561503 on these issues. And I'd really like to see them resolved before we ship 0.3, since the whole point of the SDK is to make it easy for developers like you to build and package an addon for uploading to AMO, so it shouldn't be necessary for you to modify the XPIs it generates in order to do that.

-myk

Luca Greco

unread,
Apr 24, 2010, 7:57:37 AM4/24/10
to mozilla-la...@googlegroups.com, Erik Vold, Myk Melez
On Sat, Apr 24, 2010 at 2:27 AM, Myk Melez <m...@mozilla.org> wrote:
> Thanks for the details! I filed bug 561503 on these issues. And I'd really
> like to see them resolved before we ship 0.3, since the whole point of the
> SDK is to make it easy for developers like you to build and package an addon
> for uploading to AMO, so it shouldn't be necessary for you to modify the
> XPIs it generates in order to do that.
>
> -myk

Hi myk,
I've just attached a proposed patch to the filed bug 561503 that
remove updateURL if not
specified by command line (with a minimal change on cuddlefish/rdf.py).

It can be useful for the "updateURL"-side of the problem ;-)

c u soon,
rpl

--
Luca Greco @ Alca Società Cooperativa
Follow me on http://twitter.com/lucagreco

Myk Melez

unread,
Apr 26, 2010, 1:26:17 AM4/26/10
to luca....@alcacoop.it, Luca Greco, mozilla-la...@googlegroups.com, Erik Vold
On 04/24/2010 04:57 AM, Luca Greco wrote:
> I've just attached a proposed patch to the filed bug 561503 that
> remove updateURL if not
> specified by command line (with a minimal change on cuddlefish/rdf.py).
>
> It can be useful for the "updateURL"-side of the problem ;-)
I see you've since updated the patch to handle homepageURL as well,
which is awesome! I look forward to approving and landing the patch once
Atul reviews it! :-)

Then we'll just need to fix the versioning issues...

-myk

Luca Greco

unread,
Apr 27, 2010, 6:08:41 PM4/27/10
to Myk Melez, mozilla-la...@googlegroups.com, Erik Vold
On Mon, Apr 26, 2010 at 7:26 AM, Myk Melez <m...@mozilla.org> wrote:
> Then we'll just need to fix the versioning issues...
>
> -myk

Hi myk,
Submitting for Public Nomination on AMO an extension I've created with
jetpack-sdk
("Where is my car?" https://addons.mozilla.org/en-US/firefox/addon/141502/),
it was rejected with the following reason:

"We can't allow your add-on to set global preferences like enabling dump and
strict JS warnings. Please remove them from your release version."

I can't reopen the bugzilla ticket 561503, bu I've attached to that bugreport
a little patch on 'cuddlefish/xpi.py' to remove template's preferences from
the generated xpi.

Happy Jetpack-ing,
rpl

--
Luca Greco @ Alca Società Cooperativa
Follow me on http://twitter.com/lucagreco

Myk Melez

unread,
Apr 27, 2010, 6:57:50 PM4/27/10
to Luca Greco, mozilla-la...@googlegroups.com, Erik Vold
On 04/27/2010 03:08 PM, Luca Greco wrote:
> I can't reopen the bugzilla ticket 561503, bu I've attached to that bugreport
> a little patch on 'cuddlefish/xpi.py' to remove template's preferences from
> the generated xpi.
Thanks for the patch! I reopened the bug on your behalf and also changed
your account's privileges so that you can reopen bugs (and make other
changes to them) in the future.

I'm inclined to block on this issue like we did on the other
AMO-compatibility issues, since it's important that 0.3 generate XPIs
that can be distributed via AMO given that it includes the first
high-level APIs we want addon developers to use to create real extensions.

That means we'll probably spin another release candidate once the issue
is resolved, hopefully today, and release on Thursday rather than
tomorrow (to give the new release candidate time to bake).

-myk
Reply all
Reply to author
Forward
0 new messages