How does jemalloc work? What are the benefits?

jemalloc first appeared for FreeBSD, the brainchild of one “Jason Evans”, hence the “je”. I would ridicule him for being egotistical had I not once written an operating system called paxos 🙂 See this PDF for full details. It’s a white paper describing in detail how the algorithms work. The main benefit is scalability in … Read more

How does browser know when to prompt user to save password?

Based off what I have read, I think Firefox detects passwords by form.elements[n].type == “password” (iterating through all form elements) and then detects the username field by searching backwards through form elements for the text field immediately before the password field (more info here). You might try something similar in Javascript and see if you … Read more

Why doesn’t Firefox support the MP3 file format in

Update October 2012: Wooohooo! Brendan Eich just announced on his blog that work for MP3 and H264 support in Firefox is underway. You can track the work on BugZilla: Support H.264/AAC/MP3 video/audio playback on desktop Firefox Update February 2013: After much heavy lifting from Firefox developer Chris Pearce, this patch flips the switch to enable … Read more

Firefox 5 ‘caching’ 301 redirects

In Firefox you have the “Web Developer” Tools (Ctrl+Shift+I). You can click “Network” tab and check the checkbox “Disable Cache” to check for new version of page every time. Then load the original URL and it will refresh your cache. Then you can enable the cache again and access that URL also from other tabs. … Read more

What unique features does Firebug have that are not built-in to Firefox?

Firefox’s native developer tools have come a long way since this question was written. The differences have mainly reduced to the following points: Can’t stop the script execution on DOM mutations, XHRs, or cookie changes. XPaths can’t be copied. Missing an events side panel in the Inspector (though events are displayed within the DOM structure). … Read more

text-overflow:ellipsis in Firefox 4? (and FF5)

Spudley, you could achieve the same thing by writing a small JavaScript using jQuery: var limit = 50; var ellipsis = “…”; if( $(‘#limitedWidthTextBox’).val().length > limit) { // -4 to include the ellipsis size and also since it is an index var trimmedText = $(‘#limitedWidthTextBox’).val().substring(0, limit – 4); trimmedText += ellipsis; $(‘#limitedWidthTextBox’).val(trimmedText); } I understand … Read more

Firefox session cookies

This is apparently by design. Check out this Bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=443354 Firefox has a feature where you close Firefox and it offers to save all your tabs, and then you restore the browser and those tabs come back. That’s called session restore. What I didn’t realize is that it’ll also restore all the session cookies … Read more