Skip to content
  • andersca@apple.com's avatar
    <rdar://problem/6660507> Add "privacy mode" to Netscape Plug-in API · c912076a
    andersca@apple.com authored
    Reviewed by Sam Weinig.
    
    WebKit/mac: 
    
    Listen for WebPreferences notifications and update the _isPrivateBrowsingEnabled ivar 
    when the value changes. Also call -[WebBaseNetscapePluginView privateBrowsingModeDidChange] when the
    value changes. In process this just calls NPP_SetValue, and OOP it sends a MIG message to the plug-in host.
            
    * Plugins/Hosted/NetscapePluginHostManager.h:
    * Plugins/Hosted/NetscapePluginHostManager.mm:
    (WebKit::NetscapePluginHostManager::instantiatePlugin):
    * Plugins/Hosted/NetscapePluginInstanceProxy.h:
    * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
    (WebKit::NetscapePluginInstanceProxy::privateBrowsingModeDidChange):
    * Plugins/Hosted/WebHostedNetscapePluginView.mm:
    (-[WebHostedNetscapePluginView createPlugin]):
    (-[WebHostedNetscapePluginView privateBrowsingModeDidChange]):
    * Plugins/Hosted/WebKitPluginHost.defs:
    * Plugins/WebBaseNetscapePluginView.h:
    * Plugins/WebBaseNetscapePluginView.mm:
    (-[WebBaseNetscapePluginView privateBrowsingModeDidChange]):
    (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
    (-[WebBaseNetscapePluginView preferencesHaveChanged:]):
    * Plugins/WebNetscapePluginView.mm:
    (-[WebNetscapePluginView privateBrowsingModeDidChange]):
    (-[WebNetscapePluginView getVariable:value:]):
    
    WebKitTools: 
    
    Make the private browsing mode testable by the test plug-in.
            
    * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
    (pluginGetProperty):
    * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
    * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
    (NPP_New):
    (NPP_SetValue):
    
    LayoutTests: 
    
    Add test.
            
    * platform/mac-snowleopard/Skipped:
    Remove now passing tests that was fixed by https://bugs.webkit.org/show_bug.cgi?id=30295.
            
    * plugins/private-browsing-mode-expected.txt: Added.
    * plugins/private-browsing-mode.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c912076a