Skip to content
  • cblu's avatar
    Fixed: <rdar://problem/3546028>: Safari should not give plug-ins any time,... · 86c53b1f
    cblu authored
    	Fixed: <rdar://problem/3546028>: Safari should not give plug-ins any time, thus use 0% CPU, when not in the currently active session
    
            Reviewed by john.
    
            * Plugins.subproj/WebBaseNetscapePluginView.m:
            (+[WebBaseNetscapePluginView initialize]): observe CG changes
            (-[WebBaseNetscapePluginView addWindowObservers]): observe user switch notifications
            (-[WebBaseNetscapePluginView removeWindowObservers]): stop observing user switch notifications
            (-[WebBaseNetscapePluginView viewHasMoved:]): tweak
            (-[WebBaseNetscapePluginView windowWillClose:]): tweak
            (-[WebBaseNetscapePluginView windowBecameKey:]): tweak
            (-[WebBaseNetscapePluginView windowResignedKey:]): tweak
            (-[WebBaseNetscapePluginView windowDidMiniaturize:]): tweak
            (-[WebBaseNetscapePluginView windowDidDeminiaturize:]): tweak
            (-[WebBaseNetscapePluginView loginWindowDidSwitchFromUser:]): new, stop null events
            (-[WebBaseNetscapePluginView loginWindowDidSwitchToUser:]): new, restart null events
            (ConsoleConnectionChangeNotifyProc): new, post user switch notifications
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    86c53b1f