Skip to content
  • cblu's avatar
    WebCore: · 077d5564
    cblu authored
    	Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari
    
            Reviewed by rjw.
    
            * khtml/ecma/kjs_navigator.cpp:
            (PluginBase::refresh): new
            (PluginsFunc::tryCall): call refresh
            * kwq/KWQKConfigBase.h:
            * kwq/KWQKConfigBase.mm:
            (RefreshPlugins): new
            * kwq/WebCoreViewFactory.h:
    
    WebKit:
    
    	Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari
    
            Reviewed by rjw.
    
            * Plugins.subproj/WebBaseNetscapePluginView.m:
            (-[WebBaseNetscapePluginView dealloc]): release the plug-in object
            * Plugins.subproj/WebBasePluginPackage.h:
            * Plugins.subproj/WebBasePluginPackage.m:
            (-[WebBasePluginPackage initWithPath:]): store the last mod date
            (-[WebBasePluginPackage dealloc]): release the last mod date
            (-[WebBasePluginPackage lastModifiedDate]): new
            (-[WebBasePluginPackage isEqual:]): new
            (-[WebBasePluginPackage hash]): new
            * Plugins.subproj/WebNetscapePluginPackage.m:
            (-[WebNetscapePluginPackage load]): convert the NPP_Shutdown proc pointer so that we can use it later
            (-[WebNetscapePluginPackage unload]): added log message
            * Plugins.subproj/WebPluginDatabase.h:
            * Plugins.subproj/WebPluginDatabase.m:
            (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): tweak
            (-[WebPluginDatabase plugins]): tweak
            (-[WebPluginDatabase init]): call refresh
            (-[WebPluginDatabase refresh]): new
            (-[WebPluginDatabase loadPluginIfNeededForMIMEType:]): tweak
            * WebCoreSupport.subproj/WebViewFactory.m:
            (-[WebViewFactory refreshPlugins:]): new
            * WebView.subproj/WebControllerSets.h:
            * WebView.subproj/WebControllerSets.m:
            (+[WebViewSets makeWebViewsPerformSelector:]): new
            * WebView.subproj/WebFrame.m:
            (-[WebFrame _reloadForPluginChanges]): new
            * WebView.subproj/WebFramePrivate.h:
            * WebView.subproj/WebView.m:
            (-[WebView _reloadForPluginChanges]): new
            * WebView.subproj/WebViewPrivate.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    077d5564