this is how Firefox does it. can't speak for the rest.