Firefox 22 shipped today, Firefox 23 entered Beta, and Firefox 24 entered Aurora.
This is the first time the SDK modules in a release of Firefox have diverged from the modules shipping in the last independent release of the SDK, which was 1.14. So we’ve updated the docs for this release, and also added docs for Firefoxes 23 and 24:
Once we landed the SDK in Firefox we started work on some larger projects to deliver features we’ve wanted for some time. So Firefox 22 didn’t include many user-visible changes to the SDK.
However, there’s some more interesting stuff coming in Firefox 23 and 24.
- panel positioning: now you can supply a
positionobject to the
Panelconstructor or its
show()method, to control where the panel is displayed in the browser window.
pageshowtab events. The
loadevent means you can get page load notifications for pages, like images, that don’t contain DOM content. The
pageshowevent means you can get notified when a page is retrieved from the BFCache: for example, when the user uses the “Back” button to navigate back to a page.
- XUL window support: you can include a chrome.manifest file and use it to specify XUL windows for your add-on. This makes it easier to port a XUL add-on to the SDK, because you don’t immediately have to rewrite XUL windows in HTML.
- support for HEAD requests: thanks to @bkase for fixing this very old bug.
addon-pagemodule isn’t compatible with the new “Australis” UI coming in Firefox, so we’ve deprecated it in Firefox 24. It will still work until Australis ships, then using the module will have no effect (addon-page tabs will look like normal content tabs).
- cross-domain content scripts: a new field in “package.json” enables content scripts to access content in iframes served from a different domain, and to make cross-domain XMLHttpRequests.