Skip to content
  • weinig@apple.com's avatar
    [WebKit2] Need SPI to determine whether a plug-in is blocked · 32fecf3d
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=113463
    
    Reviewed by Anders Carlsson.
    
    Add new SPI, WKContextCopyPlugInInfoForBundleIdetifier, to get data about a plug-in,
    including whether it is blocked by x-protect.
    
    * UIProcess/WebLoaderClient.cpp:
    * UIProcess/API/C/WKAPICast.h:
    (WebKit::toWKPluginLoadPolicy):
    (WebKit::toPluginModuleLoadPolicy):
    Move to a shared location.
    
    * UIProcess/API/C/mac/WKContextPrivateMac.h:
    * UIProcess/API/C/mac/WKContextPrivateMac.mm:
    (WKContextIsPlugInUpdateAvailable):
    (WKPlugInInfoPathKey):
    (WKPlugInInfoBundleIdentifierKey):
    (WKPlugInInfoVersionKey):
    (WKPlugInInfoLoadPolicyKey):
    (WKPlugInInfoUpdatePastLastBlockedVersionIsKnownAvailableKey):
    (WKContextCopyPlugInInfoForBundleIdetifier):
    Add new SPI and dictionary keys.
    
    * UIProcess/Plugins/PluginInfoStore.cpp:
    (WebKit::PluginInfoStore::findPluginWithBundleIdentifer):
    * UIProcess/Plugins/PluginInfoStore.h:
    * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
    (WebKit::PluginInfoStore::findPluginWithBundleIdentifer):
    Add function to lookup plug-ins by bundle identifier.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    32fecf3d