MPL Update: New Changes For Review

We’ve published the first draft of our proposed changes to sections 2 and 3 of the MPL.

In particular, in what I’m sure will be a popular move, we’ve revised and simplified the notification and documentation requirements in section 3 (the part responsible for the boilerplate headers in every file).

We are very interested in feedback! Please do read and comment in the commenting tool.

Mozilla Add-Ons Workshop: London

The MAOW is coming to London! It’s happening on the evening of Wednesday 30th June, and I’m so keen to be there I rearranged a flight to the Mozilla Summit. If you are based in the South-East and already build or are interested in building add-ons, register and then come and hang out with us.

The venue is “The Hub”, a co-working space near King’s Cross station.

Micro Lightning Talks: Things Mozilla Developers Need To Know

I hope to present a set of Micro Lightning Talks at the upcoming Mozilla Summit, called “Things Mozilla Developers Need To Know”. Micro Lightning Talks (which I just invented) are one or two sentences – one of instruction and one optional additional sentence of rationale – so a lot of them can fit into a conventional “long” lightning talk. The sentences have a common theme, in this case our development process.

So each Micro Lightning Talk tells people, in one or two sentences, something that it would be good if everyone on the Mozilla project knew, and why – either because it would make their own lives easier, or because it would make someone else’s life easier! Here are some examples:

  • When creating new tri-licensed files, you should use the boilerplate linked from the mozilla.org/MPL rather than copy-pasting from an existing file. This is so the formatting is right for automated tools.
  • When you change the meaning of a string in a DTD or .properties file, you must also change its name. Otherwise, localizers won’t know to re-localize it.
  • You need let the licensing team know before importing third party code into the tree. This is so we can meet our licensing obligations.

If your life would be made easier if everyone in the project knew a very simple Mozilla-development-related thing, then please post your ideas here, in one or two sentences – one of instruction and possibly one of rationale. I will consider all submissions :-)

hg transplant

Ever wanted to cherry-pick a set of patches from one Hg branch to another one, even a set which are non-contiguous and are in the middle of the history? You need the Transplant Extension. It ships with Mercurial. Enable it in your ~/.hgrc as explained in the above-linked page. Then:

  • Get a working copy of the target branch (e.g. using hg update -C <target branch>)
  • hg log -b <source branch> to find the revision numbers of the revisions you want
  • hg transplant -b <source branch> REV1 REV2 REV3 REV4
  • hg outgoing shows the transplanted changesets
  • hg push

It’s that easy :-)

Summer of Code 2010 Projects

Summer of Code 2010 kicked off this week, with Mozilla having 13 slots. Here are the projects, students and update locations if you want to keep an eye on what they are doing:

Title Student Mentor Updates
Quick Look support for attachments in Thunderbird Khoi Nguyen Le Duc Blake Winton and Gary Kwong Blog
New automated tests for the Fennec front end Aditya Rao Joel Maher Blog
Mail Store interface and implementation for Mbox and Maildir in Thunderbird Andrey Terentyev David Bienvenu Wiki page
Support for TLS 1.1 (RFC 4346) and TLS 1.2 (RFC 5246) in NSS Kuat Eshengazin Robert Relyea Wiki page
RSA-PSS signatures in NSS Johannes Boeck Wan-Teh Chang Blog
Weave Sync engines for tabs and Mail/News status for SeaMonkey Harini Sirisena Robert Kaiser Blog
Multitouch Simulation Framework Diego Hernan Rodriguez Colmeiro Felipe Gomes Blog
Multitouch Simulation and User Interface integration into Firefox Anirudh Sharma Felipe Gomes Blog
Hook / Stub mechanisms for Lightning; improve alarm support Anirvana Mishra Ludovic Marcotte Blog
New add-on package system for Firefox Hebert Duarte Jorge Villalobos Blog
Social Bugzilla Extension Wenjin Wu Guy Pyrzak Blog
Improved automated UI testing for Lightning Meharuban Mahadeva Merike Sell Blog
Naive Bayes algorithm to automatically classify emails in Thunderbird Ian Lienert Blake Winton Blog

Private Google Searches in Firefox

[Update 2010-05-27 09:16: Don’t do the below editing, because it’ll break your updates. Install Cheng Wang’s Google (HTTPS) search provider instead.]

Google just announced that you can now search Google with your query and results protected by SSL. If you want to change Firefox so that searches in the URL bar use a secure connection and so cannot be eavesdropped, change “http” to “https” in the keyword.URL preference in about:config.

Unfortunately, the Google Suggest service at http://suggestqueries.google.com/ does not currently support SSL, which means that it’s not possible to have both suggestions and non-eavesdroppable searching in the Firefox search box. If you want private searching rather than suggestions, then edit the file $FIREFOX_HOME/searchplugins/google.xml, delete the line beginning:

<Url type=”application/x-suggestions+json” …

and then change the URL in the following line from “http” to “https“.

Note that not all Google search types are available over SSL and, quite wisely, Google does not provide links to “repeat this search with another type” for non-secure types from the secure UI. So making the switch will make it harder to do e.g. Image searches.

Still, it’s a great start!

Uploading Screenshots

Futher to my previous post… it struck me that a lot of people’s problems would suddenly become much clearer if they could upload a screenshot. However, taking and uploading screenshots is currently a reasonably complex process, especially on XP (where it involves Microsoft Paint).

Here’s today’s usability challenge: can we enhance Firefox in some way to make this easier? For example, it would be great if we could give users instructions like:

  • Right click on the “Browse” button of this file upload control and select “Upload Screenshot”
  • See the timer start to count down from 10 in the top right of your screen
  • Bring the relevant window or tab you want to take a screenshot of to the front
  • Wait for the timer to expire
  • Hit “submit” on the form

New Commit Access Policy: Benefits For You

After discussion, we have now written and implemented a new Commit Access Policy. The aim here is to reduce bureaucracy and enable easier collaboration within the project and with those outside it.

In summary, there are 3 levels of access a person may have:

  • Level 1 – Try/User/Incubator access
  • Level 2 – General access (everything else)
  • Level 3 – Core product access (Firefox/Fennec/Thunderbird)

This policy has the following benefits for you:

  1. It is much easier for Mozilla community members to bring in external people to collaborate with.

    If you have general Mozilla commit access (level 2), you can create a user repo and file a bug to give level 1 access, which includes user repos, to anyone you want to collaborate with. It only needs your say-so (and you are responsible for their conduct).

    Also, new community members can get access to the try servers earlier in their Mozilla life. Please encourage people to ask for this early if it would help them.

  2. It is much easier for Mozilla community members to contribute across the project.

    Those with level 2 access (which is most people) can now check in everywhere except the core product repos (level 3) and those on the list of exceptions[1]. So if you write a patch to e.g. mozbot or a webtool or a website, you can check it in yourself (after review).

    People can move to working on a new project or area of the project without an impeding step of having to get some SCM auth file updated.

In addition, the technical changes on the back-end mean we are now storing approved access levels separately from individual SCM enablement – so we can disable dormant accounts, and yet re-enable them easily when necessary without having to go through a re-authorization step.

Please let me know if you have any further comments on this new system.

Summer of Code Applications Now Open

Applications have just opened for the Google Summer of Code 2010. If you are a student, please consider applying to Mozilla – either to do one of our ideas or an idea of your own. If you are not a student, please contact students you know and encourage them to apply.

If you aren’t sure whether your idea has any chance of acceptance, please feel free to email me. One hint: if you are proposing an add-on for Firefox or Thunderbird, you will have to work very hard to demonstrate unusual value with respect to the core goals of the Mozilla project. The fact that you think it’s cool and useful is not in itself a sufficient reason for us to pay you to build it. :-)

Bugzilla API 0.5 Released

I noticed I forgot to blog this…

Version 0.5 of the Bugzilla REST API has been released.

Note: versions 0.4.1 and below have a security issue[0] which could, under some circumstances, allow one user to impersonate another. If you are specifically using these versions (rather than the “latest” version) please update your client software to use version 0.5.

New In 0.5:

  • Performance instrumentation. I have added code which records how long requests take, so I can see whether the bottlenecks are, if any. If you are having performance issues with the API, please file bugs and tell me what is slow!
  • JSONP support. Use Accept: application/javascript and pass a callback=myfunction parameter, and you will get JSONP served as application/javascript.

Compatibility Notes:

  • The range of content types that the API can return is now restricted
    to:

    • YAML-HTML (for browsing) – text/html
    • JSON – application/json
    • JSONP – application/javascript
    • XML (utterly unfrozen!) – application/xml
  • The deprecated “count=1” parameter to bug searches to get a count has been removed.

File bugs | Feedback and discussion

[0] This bug will be opened in a few days.