Perhaps someone with dev tools could test these against a current Safari build and update bugzilla if they’re still current?
1. BBC world service
http://www.bbc.co.uk/radio/aod/worldservice_promo.shtml
a) load page
b) click “listen live”
c) close page > “world leak detected”
2. window.close()
This page describes a repeatable leak with window.close()
http://lists.apple.com/archives/Web-dev/2005/Jan/msg00003.html
That being said, it would be helpful if you could provide any of the following: (1) specific steps to reproduce “slow mode” (just saying “run it for a few days” is not enough – not everyone visits the same web sites or uses the browser in the same way, and so far no one on the Safari team is regularly encountering this sort of “slow mode”); (2) a profile made with Shark.app (included in the developer toos) taken while browsing and while quitting when Safari is in this bad state. Bug reports with that kind of info would help us a lot.
]]>Or how about something similar to what Asa is doing on his blog: “Ask Asa”?
]]>It’s hard to see how memory leakage per se could lead to such a slow shutdown. It really seems more like some critical data structures are based on perhaps linked lists that get insanely fragmented, with a bazillion dead nodes in the middle of the list, or a hash that goes wrong and hashes EVERYTHING to the same number.
My point is that,
(1) while it is always good to kill memory leaks, it’s not clear to me (via informal monitoring of my memory usage and paging through menumeters) that it is memory leakage and VM swappage per se that is slowing Safari down.
(2) it would be worth your while, I think, and probably easier than many alternatives, to investigate what is going on when Safari is quit in the simplest case of having no windows open. Write some code to count various operations, conditional on some variable that only gets set when the user chooses quit, and try to track what is going on at this point and just why it takes so long. (Obviously you want to do this after Safari has been used for a few days or weeks so that it has switched to “slow mode”.)
Anyway, the latest builds have two visible acid2 errors;
1. The nose changes to blue on mouseover
2. The eyes are gone
zahadum, that isn’t really a constructive post is it. It’s especially ironic that one thing you’re complaining about is now a big focus of the team. If the defects are so “simple” how about pulling the code and making some beneficial changes yourself? I’m sure they’d be delighted if you solved just one memory leak, and of course Apple wouldn’t lose you then.
Matt
]]>