http://hg.mozilla.org/mozilla-central/rev/2af378ef814c#l8.33
... they're only dropping the trailing slash if it corresponds to the root path. i.e. "www.google.com/" will become "www.google.com", but "www.google.com/webmasters/" will be untouched.