2006-03-20 Eric Seidel <eseidel@apple.com>
Reviewed by adele & ggaren.
Added new cachePluginDataIfNecessary function to update
plugins and mimes arrays. Made sure to call this in
constructor as well as refresh. The crash was caused by
a refresh rendering a "plugins" object invalid.
Changed existing test case to depend on this new correct behavior.
<rdar://problem/
4480571> Safari crashed at exit at KXMLCore::deleteAllValues + 24
* khtml/ecma/kjs_navigator.cpp:
(KJS::PluginBase::cachePluginDataIfNecessary):
(KJS::PluginBase::PluginBase):
(KJS::PluginBase::~PluginBase):
(KJS::PluginBase::refresh):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13410
268f45cc-cd09-0410-ab3c-
d52691b4dbfc