Search, Don’t Sort?

Searching is, I am often told, the new sorting – witness GMail, which doesn’t really have the idea of folders for mail at all, and the popularity of Desktop Search. (My experience with Beagle was not really a pleasant one, but I’ll save that for another post.)

I certainly find myself spending mental energy on “in which folder do I file this message?” far too often, and the only thing folders seem to do for me is cause me to look in the wrong one when I want something. Therefore, I am considering taking all my archived mail and dumping it into a single folder per account – sent mail and all.

As this is, after all, a hard-to-reverse process, I need to consider whether my IMAP server and Thunderbird will both be able to cope. Does anyone have any experience of using this approach on a large message base?

For sizing purposes, I appear to have 3595 non-spam messages in total in my personal account, and 8648 in my Mozilla account. The IMAP server concerned is tuschin.blackcatnetworks.co.uk, which runs Courier IMAP.

The Right Measure

Now this is the most sensible measure of the relative security of two browsers. Ask the question “For how many days was I at risk from a published exploit to a known bug?”.

In 2006, the score was Internet Explorer: 286 (78%); Firefox: 9 (2.5%).

Visual Regressions

We currently have a tool called reftest, which compares the rendering of HTML testcases against reference files – usually written in HTML, but they could just be a container document enclosing a PNG.

It would be really cool if reftest were a Tinderbox test, with the tinderbox building Firefox with the particular options reftest needs. We could then enhance it to also run various HTML and CSS testsuites on the web (e.g. Hixie’s) and also do Save Page As… on various popular websites and add those files into the mix.

If we could get to a position where our latest rendering engine were being automatically and regularly checked against thousands of testcases and real world pages, we’d be immediately be able to see the effect on the web of any changes we made. We’d be much better placed to catch regressions.

Anyone feel like making this happen?

Statistical Analysis on mozilla.feedback

The mozilla.feedback newsgroup, which takes the output of Hendrix, now has 23,000 posts in it, and acquires more at the rate of hundreds per day. While we don’t have the resources to follow up each one individually, I think we might find some interesting things by doing analysis on the aggregate data. This would give us some idea of trends.

Perl (and, I’m sure, other languages) has appropriate modules for getting the data – Net:NNTP to download them, and News::Archive to persist them to disk. One could then read them in, filter them by product (there’s a header for that) and do one word, two word and three word frequency analysis to try and extract some common themes.

Anyone feel like this would be a fun project for an hour or two? :-)

I’m Back

I’m back, and working through the backlog of Mozilla-related stuff. While I was away, I managed to find time to write a few things which I hope to share with you over the coming days.

The neck skin is now basically back to normal, although none of my hair has regrown as yet :-)

Absence

The number of posts on this blog hasn’t been large recently, and it’s not about to increase, as I am off to China for three weeks from Sunday. Anything urgent and Mozilla-related should go to Frank Hecker (hecker at mozillafoundation.org).

My neck, thank you for asking, is doing very well. Because the top layer of skin has come off and there’s no hair growing any more (don’t women pay lots of money to have that done?) it’s lovely and smooth, and in good shape. The redness is fading fast.

Title-based Tooltips Broken?

Firefox 2 on Linux – anyone else see title-attribute-based tooltips not working (e.g. hyperlinked bug numbers in Bugzilla comments)? I did a reduced test case and they just plain don’t display when I mouse over and wait.

Of course, any search to try and find the problem is swamped by lots of posts complaining about alt-attribute-based tooltips (correctly) not working…

Extended Validation Certificates

For some time, the Mozilla Foundation has been taking part in a group called the CA/Browser Forum (CABF), an association of the major public-facing CAs and all the major browser-makers except Apple.

Currently, there is no minimum level of validation which is done before a certificate is issued, leading to the existence of “domain control only” certificates, which have no information in them about the party to whom they are issued. Such certificates have some uses, but are not recommended for e-commerce. Other CAs claim to do more vetting – however, their methods are trade secrets and there is no standardisation. However, the current browser presentation of all certificates is the same padlock icon.

The aim of the group is to develop a new, higher standard for the validation which is done before certificate issuance, called Extended Validation. The idea was that such certs would be presented differently in the UI, to give the CAs a reason to go to the extra effort, and to give customers a reason to buy them. In IE 7 at least, the use of an EV certificate is tied to the green background in the URL bar.

The Foundation representatives have so far not made a commitment to the CABF on the exact timing or nature of our support for EV. This includes the UI.

The guidelines have been developed via a very long and drawn-out process, including several face-to-face meetings with competing specifications from different groups of CAs over the past two years. Eventually and quite recently, a Microsoft employee synthesised a unified specification, which has now been made available for public comment.

While the CABF website has a public comment procedure, I suggest it would be best for the Foundation to try and come to a consensus within the project first. We need to decide whether EV will make a material difference to the reliability of information in certificates and, if so, whether that warrants a different UI presentation for EV certificates. It would also be good to have a more general discussion about how we present security information to users. Ideally, I would be able to give any feedback to the editor before November 19th, after which there may be another vote on adopting the updated specification. Please join the discussion in the mozilla.dev.security newsgroup.

Firefox 2, IE 7 and L10N

Microsoft have just posted the details of which languages IE 7 will be available in. It’s interesting to compare this with the list of locales currently available for the latest Firefox 2 beta, which hopefully is a good proxy for what we will have in the final release.

We both seem to agree on what the core locales are – with the exception of Hebrew, which I’m sure is brewing, we can match them on all of their “Fully Localised Languages”. Funny, though – if you are on XP SP2, you are fine, but if you are on any of the other current Microsoft OSes, such as Windows Server 2003 or a 64-bit version, you may well be out of luck. IE 7 on those platforms is only available for a small subset of the “fully localised” set. And, of course, it’s not available for earlier versions of Windows at all such as Windows 98 and Win2K. Firefox language packs, on the other hand, work everywhere Firefox does.

And we do have a wider coverage of full language packs. There are 13 languages we provide full packs for that they don’t – with three (Mongolian, Byelorussian and Frisian) which they have no provision for at all. As far as IE is concerned, the Frisians have been frisian out.

Next, they have this thing called the “MUI version” – with MUI standing for Multi-language User Interface. This has a load of languages in one big bundle, and you can switch between them at will. Great for internet cafés, but if you speak Slovenian, which is only available in this form, then you have to download 32 other languages in order to get yours. I hope they don’t have slovenly internet connections in Slovenia. There are also several other languages which are only available in full form as part of this download (e.g. Thai and Slovak).

Our coverage of the extra languages available in the MUI pack is spotty – we have Slovak and Bulgarian fully localised and shipped, but don’t even have an Estonian team. Then again, there are only 1.3 million people in Estonia, whereas there are 18 million Malay speakers and they only get a LIP (see below). I wonder if the choice of languages here is partly dictated by the official languages of the EU? Microsoft’s relationship with the EU could probably use some improving, so perhaps this is one small contribution. If so, they’ve missed Maltese (and, from January 1st, Irish). I envisage a last-minute panic at Microsoft HQ; after all, you don’t want to make the Maltese cross…

Lastly, they have what they call LIP (Language Interface Pack) versions. As far as I can tell, this is where you get the interface translated, but not the Help or anything like that. Definitely second-class status. On the other hand, with the addition of these packs, they do have a wider coverage than we can manage. If Hindi or Farsi (Persian) speakers, for example, want a web browser in that language, then a LIP version of IE 7 is the best they’ll get. Except that they won’t get it until after January 2007, because Microsoft don’t do simultaneous releases like we do. Hopefully those language speakers can see that far.

We have localisation teams for far more languages than we ship, but there are many volunteers where we don’t seem to have yet managed to translate willingness into finished, checked in and shipped translations. Perhaps that should be a focus post-2.0?

Still, I think we’re in a good location with localisation. Well done to everyone who is part of a l10n team, and to Axel for coordinating it all. :-)

A Question Of Attitude

[The following column was turned down by The Times Online because they suggested I had a conflict of interest. Of course that’s their prerogative, but given that my employment is posted at the bottom of every article I write for them, it’s not as if people don’t know where I’m coming from…]

In the next week or two, both Microsoft and Mozilla will be releasing major updates to their browsers – Internet Explorer 7 and Firefox 2. Tech journalists the world over are surely at this very moment dusting off their tired “browser war” headlines from the late 1990s, and conducting detailed comparative reviews which they will all release at the same time as the software, having cheated by basing their work on the beta versions.

“Tabs? Check. Phishing protection? Check. Feed reader? Check. Spell checking in form fields? Ooh, advantage Firefox. ‘Protected mode’? And it’s back to neck-and-neck…”

But I suggest there is another way to compare the two contenders aside from a feature-by-feature tick-list. It’s in the attitude the two organisations have shown to the users of their products.

Way back when in the late 90s (are you sitting comfortably?), Netscape and Microsoft were fighting over the growing browser market. These were the days when Java was the next big thing, <blink> was cool, and the HTML for the websites of major companies was still coded by hand.

Both browser makers burned the midnight oil to cram in more features. But, just as haste in placing the bottom bricks comes back to haunt you when you try and make your tower reach the ceiling, software has a limited ability to absorb quick-and-dirty changes and hacked-in enhancements before it becomes an unmaintainable mess. And Netscape’s tower topped out first.

Netscape 4 was inferior to IE 4, let alone IE 5 or 6, and the creaking codebase couldn’t be extended any further without disproportionate effort. So through a combination of monopolistic behaviour by Microsoft and suspect business decisions by Netscape, a victor emerged. As the nascent Mozilla project set off on a four-year odyssey rewriting the browser from the ground up, they ceded the field to Microsoft.

But how did Microsoft respond to this victory? Basically, they did nothing. Their market share was somewhere north of 90% and growing. This was job done as far as they were concerned. Through the wilderness years of the early part of the decade, as popups, spyware and viruses made the lives of web users a misery, Microsoft produced the bare minimum of security patches but nothing more. Why should they? Almost everyone used their product regardless. They had no interest in evolving the browser to meet the changing needs of the web’s growing population.

Then back came the Mozilla project with Firefox, a browser for the web as it is today. This coincided with the rise of rich web applications, which threatened to make the operating system irrelevant and turn the browser into the platform. After all, if your mail is from Yahoo and your word processor is from Google and you manage your photos with Flickr, does it really matter if you are doing it on Windows or Linux? (Ironically, the core technology which made this possible, the ‘XMLHTTPRequest’ object which lets web developers easily update pages without a reload, was invented by Microsoft for IE 6 [Correction: IE 5].)

Only at this point, when Microsoft felt threatened, did Bill rebuild the browser team to make IE 7. He needed to arrest the market share decline, and find a way to make the web experience best with proprietary Windows-only technology. So the creation of this new version is not motivated by his desire to provide a better surfing experience for their users, but his desire to keep control of the web and make sure it doesn’t threaten Microsoft’s platform hegemony.

Firefox, on the other hand, has been user-centered from the beginning. The original developers’ misery at having to produce Netscape 6 drove them to produce software they thought everyone else would want to use. The extension mechanism provides a safety valve through which the geekiest features can be pushed out and only installed by those who need them, allowing a relentless focus on usability and simplicity. Firefox is a browser made for you.

Yes, Microsoft have got off their backside and improved their product, and that can only be good for web users and developers. Yes, competition is good. But before you consider IE 7, ask yourself this – if Microsoft dumped you before, why won’t they do it again?

Firefox Reload Behaviour

On some pages with forms, when you press Reload in Firefox, the page reloads but Firefox keeps the original contents of any elements (although it does update or reset other form elements, including hidden ones). This can leave forms in an inconsistent state. Anyone know why it does this, and whether it’s possible to set caching-related or other HTTP headers to stop it? Shift-Reload seems to sort out the problem, but people won’t necessarily know or remember they need to press that.

I can’t find anything by searching – all I find when searching for “Firefox clear textbox” is people asking thinly-disguised “how do I conceal my pr0n-surfing habit from my girlfriend?” questions…

DNS Structure

Almost since the beginning of the Mozilla project, there have been various bugs open on the browser about cookies, domain names and privacy, caused by the differing models of delegation in use around the world. Essentially, Firefox does not know that you should be allowed to set a cookie for “amazon.com”, but not for “co.uk” at the same level of the DNS. This allows unscrupulous advertisers to track people across multiple otherwise-independent sites.

In one sense, this is by design. The DNS system is not supposed to impose any rules about how subdomains can be delegated. However, this flexibility clearly causes a problem in this case. The original cookie spec rather glossed over the problem, by suggesting a “one dot rule” – don’t allow the cookie if the domain attribute has no dots. This is fine for .com, but doesn’t help for .co.uk. The second attempt had another go at defining a rule which worked in practice, but there were still loopholes.

Various solutions have been proposed for this problem – from making the information available as a web service, to doing DNS lookups to see if the name resolves, to writing a new cookie spec, to making an enormous list encoding the delegation structure of every one of the 200+ TLDs on the planet.

This last has always seemed like a Sisyphean task. One person worked out what the rules were for Japan; they seemed so complicated that no-one wanted to take on the job of doing the same thing 199 more times. However, spurred by the need for Places to also know this information in order to present your history and bookmarks to you in a sensible fashion, the indefatigable Jo Hermans took up the challenge. Attached to bug 342314, you can see the first version of a document which attempts to record all of this information.

Although in the past, Japan was used to justify the “this is too complex; it’ll never work” argument, it turns out that the Norwegians take the prize for the most complicated delegation system. Encoding it correctly requires 760 rules. TLDs like .net, on the other hand, have just one – or none, if you rely on the fact that single-part domain names are implied members of the list.

So, thanks to Jo’s hard work, Firefox 3 will have a more secure cookie implementation. We will be sharing this information with Opera, and any other browser maker who may find it useful. It’s important to note that this information changes over time; applications should only ship this file if they have some way to update it.