Skip to content
Permalink
Browse files
Don't use _CFBundleCreateUnique on Yosemite, it's not available there
https://bugs.webkit.org/show_bug.cgi?id=167459
rdar://problem/30181179

Reviewed by Beth Dakin.

* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
(WebKit::NetscapePluginModule::getPluginInfo):

Canonical link: https://commits.webkit.org/184499@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Anders Carlsson committed Jan 26, 2017
1 parent c153f10 commit 3686509f69313e8e69b6d24004a62a94588a411f
Showing with 16 additions and 0 deletions.
  1. +11 −0 Source/WebKit2/ChangeLog
  2. +5 −0 Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm
@@ -1,3 +1,14 @@
2017-01-26 Anders Carlsson <andersca@apple.com>

Don't use _CFBundleCreateUnique on Yosemite, it's not available there
https://bugs.webkit.org/show_bug.cgi?id=167459
rdar://problem/30181179

Reviewed by Beth Dakin.

* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
(WebKit::NetscapePluginModule::getPluginInfo):

2017-01-26 Alex Christensen <achristensen@webkit.org>

Add SPI for updating WebsitePolicies
@@ -209,7 +209,12 @@ static bool getPluginInfoFromPropertyLists(CFBundleRef bundle, PluginModuleInfo&
RetainPtr<CFURLRef> bundleURL = adoptCF(CFURLCreateWithFileSystemPath(kCFAllocatorDefault, pluginPath.createCFString().get(), kCFURLPOSIXPathStyle, false));

// Try to initialize the bundle.
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
RetainPtr<CFBundleRef> bundle = adoptCF(_CFBundleCreateUnique(kCFAllocatorDefault, bundleURL.get()));
#else
RetainPtr<CFBundleRef> bundle = adoptCF(CFBundleCreate(kCFAllocatorDefault, bundleURL.get()));
#endif

if (!bundle)
return false;

0 comments on commit 3686509

Please sign in to comment.