Safari 4.0 addresses issues in CFNetwork, libxml, Private browsing session ghosting, Web Kit and passwords remaining in memory on application exit. In addition to some new features over fifty security issues have been addressed and fixed.
Apple has already released an update to Safari to 4.01 to address compatibility issues related to photo sharing locally and on the internet. This includes iPhoto, Facebook and Picasa.