diff options
Diffstat (limited to 'WebKit/mac/Plugins/WebBasePluginPackage.mm')
-rw-r--r-- | WebKit/mac/Plugins/WebBasePluginPackage.mm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebKit/mac/Plugins/WebBasePluginPackage.mm b/WebKit/mac/Plugins/WebBasePluginPackage.mm index 7b5ef8e..1bddbcf 100644 --- a/WebKit/mac/Plugins/WebBasePluginPackage.mm +++ b/WebKit/mac/Plugins/WebBasePluginPackage.mm @@ -198,12 +198,18 @@ { } -- (NSDictionary *)pListForPath:(NSString *)pListPath createFile:(BOOL)createFile +- (void)createPropertyListFile { - if (createFile && [self load] && BP_CreatePluginMIMETypesPreferences) { + if ([self load] && BP_CreatePluginMIMETypesPreferences) { BP_CreatePluginMIMETypesPreferences(); [self unload]; } +} + +- (NSDictionary *)pListForPath:(NSString *)pListPath createFile:(BOOL)createFile +{ + if (createFile) + [self createPropertyListFile]; NSDictionary *pList = nil; NSData *data = [NSData dataWithContentsOfFile:pListPath]; |