Archive for the 'Mozilla' Category

The return of NS_ABORT_IF_FALSE

Thursday, July 17th, 2008

After five years in hiding, NS_ABORT_IF_FALSE has returned. Please use it instead of NS_ASSERTION in situations where failure is likely to lead to memory corruption. By aborting rather than asserting, you ensure that debug-build users focus on the cause of the corruption rather than whatever random crash results from the corruption. This leads to happier debugging and better bug reports.

Of course, sometimes it's better to prevent the memory corruption entirely, e.g. by adding a run-time check or by making all builds abort (not just debug builds).

New security features in IE8

Friday, July 4th, 2008

Microsoft has announced interesting new security features that will be in Internet Explorer 8 Beta 2. They are following other browsers such as Firefox on some issues, and taking bold new steps on others.

Firefox users are already filing bugs asking for us to match some of these features.

Twitter Quick Reply user script

Tuesday, July 1st, 2008

Last week, John Resig created a Twitter Quick Reply bookmarklet. I wanted to make replying even faster, so I created a Greasemonkey script that adds a reply box to each tweet. If you follow a Twitter feed and reply frequently, this script could save you some time.

My script uses several advanced Gecko features. First, it uses getElementsByClassName, which was added in Firefox 3, so it will not work in Firefox 2. Second, it uses a transparent iframe background to hide the fact that there is an iframe present. (By the way, did you now that the default background for iframes is transparent? In the past, I have argued that this default is a security hole. But most sites specify a background color, so it's almost moot.)

Algorithm Ink

Tuesday, July 1st, 2008

Aza Raskin's Algorithm Ink is really neat. Hand Spirals and Kishkush balabush create beautiful pictures with just a little bit of code, while Underground and Morse Code Forever look like real things. Algorithm Ink can even be tricked into performing pure animation, as shown by my example Gears.

Ask Jesse answers

Thursday, May 29th, 2008

Asa has published my answers to the questions you asked me. They include my opinions on full disclosure, what makes security hard, and more.

TidyBox updated for Mozilla 2

Monday, May 19th, 2008

I've updated Tidybox to work on the Mozilla 2 tree. If you want to use Tidybox there, just install the new version.

Chandra and VLA spot Firefox logo

Wednesday, May 14th, 2008

The Firefox logo has been spotted in space again. This time, it was found hiding in the center of our galaxy.

Ask Jesse

Tuesday, May 13th, 2008

Asa is interviewing me this week. If you have anything you want to ask me, post it on Asa's blog :)