Changeset 210603 in webkit


Ignore:
Timestamp:
Jan 11, 2017 3:55:37 PM (7 years ago)
Author:
andersca@apple.com
Message:

navigator.plugins.refresh and WKContextRefreshPlugIns doesn't pick up changes to already-present plug-ins
https://bugs.webkit.org/show_bug.cgi?id=166942
rdar://problem/29839194

Reviewed by Sam Weinig.

Source/WebKit2:

Use _CFBundleCreateUnique so the resulting bundle won't be cached.

  • Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:

(WebKit::NetscapePluginModule::getPluginInfo):

Source/WTF:

  • wtf/spi/cf/CFBundleSPI.h:

Add SPI declaration.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r210504 r210603  
     12017-01-11  Anders Carlsson  <andersca@apple.com>
     2
     3        navigator.plugins.refresh and WKContextRefreshPlugIns doesn't pick up changes to already-present plug-ins
     4        https://bugs.webkit.org/show_bug.cgi?id=166942
     5        rdar://problem/29839194
     6
     7        Reviewed by Sam Weinig.
     8
     9        * wtf/spi/cf/CFBundleSPI.h:
     10        Add SPI declaration.
     11
    1122017-01-06  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    213
  • trunk/Source/WTF/wtf/spi/cf/CFBundleSPI.h

    r205488 r210603  
    3939void _CFBundleSetupXPCBootstrap(xpc_object_t bootstrap);
    4040
     41CFBundleRef _CFBundleCreateUnique(CFAllocatorRef, CFURLRef bundleURL);
    4142Boolean CFBundleGetLocalizationInfoForLocalization(CFStringRef localizationName, SInt32 *languageCode, SInt32 *regionCode, SInt32 *scriptCode, CFStringEncoding *stringEncoding);
    4243CFStringRef CFBundleCopyLocalizationForLocalizationInfo(SInt32 languageCode, SInt32 regionCode, SInt32 scriptCode, CFStringEncoding stringEncoding);
  • trunk/Source/WebKit2/ChangeLog

    r210596 r210603  
     12017-01-11  Anders Carlsson  <andersca@apple.com>
     2
     3        navigator.plugins.refresh and WKContextRefreshPlugIns doesn't pick up changes to already-present plug-ins
     4        https://bugs.webkit.org/show_bug.cgi?id=166942
     5        rdar://problem/29839194
     6
     7        Reviewed by Sam Weinig.
     8
     9        Use _CFBundleCreateUnique so the resulting bundle won't be cached.
     10
     11        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
     12        (WebKit::NetscapePluginModule::getPluginInfo):
     13
    1142017-01-11  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

    r196505 r210603  
    3333#import <wtf/HashSet.h>
    3434#import <wtf/MainThread.h>
     35#import <wtf/spi/cf/CFBundleSPI.h>
    3536
    3637using namespace WebCore;
     
    209210   
    210211    // Try to initialize the bundle.
    211     RetainPtr<CFBundleRef> bundle = adoptCF(CFBundleCreate(kCFAllocatorDefault, bundleURL.get()));
     212    RetainPtr<CFBundleRef> bundle = adoptCF(_CFBundleCreateUnique(kCFAllocatorDefault, bundleURL.get()));
    212213    if (!bundle)
    213214        return false;
Note: See TracChangeset for help on using the changeset viewer.