It also strips out common prefixes among tab titles that would cause the tab title to become abbreviated. It's pretty clever, I think.
Safari also uses some pretty clever tricks when abbreviating to preserve as much information as possible -- it uses interior ellipses sometimes instead of trailing ones, and I think it has a blacklist of low-content words to strip out first.