Jetpack Project: weekly update for April 23, 2013

Project News

This week I’d like to tease some of the new stuff we’re working on. We’re excited to be implementing some new APIs that allow developers to add buttons and other common UI elements to the Firefox navigation bar. Based on Matteo’s JEP, here is an example of how this would work:

const { Button } = require("sdk/button");

// Minimal "action" button, default icon, 16x16
let actionButton = Button({
    id: "my-button",
    label: "My Button"
});

actionButton.on("click", function() {
    // do something when the button is clicked
});

This work is linked to a huge effort on the part of the Firefox team to deliver a refresh of Firefox’s look and feel called ‘Australis’ in Firefox 24.

Next up, we’re also excited to bring more of the web into add-on development. Irakli and Eddy have been working on a simple way to import DOM apis and use them in your add-on. Here’s a small example to illustrate how we expect this to work:

let { window } = require("sdk/addon/window");
let exampleSocket = new window.WebSocket(
    "ws://www.example.com/socketserver", 
    ["protocolOne", "protocolTwo"]
);

If you have any feedback on this or other upcoming work, we’d love to hear from you, either in #jetpack on irc.mozilla.org or via the Jetpack mailing list.

Quick Stats

Note: the stats above are based on the queries I linked to for each item. If you have suggestions on how these queries might be made more accurate,please comment below. Stats generated at 2013-04-23 08:42:09 PDT

Meeting Brief

  • High Priority work: Last private browsing changes need to be uplifted, cross-domain content script support is landed on the platform but needs an owner for the JS side.
  • Roundtable: we’ll start flagging good first bugs in triage, dcamp had some questions about loader internals.

Full minutes are available here:
https://wiki.mozilla.org/Jetpack/Weekly_Meeting/2013-04-23#Minutes