Changeset 294858 in webkit
- Timestamp:
- May 25, 2022, 6:36:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/mac/Plugins/WebPluginDatabase.mm
r285047 r294858 373 373 + (NSArray *)_defaultPlugInPaths 374 374 { 375 #if !PLATFORM(IOS_FAMILY) 375 #if PLATFORM(IOS_FAMILY) 376 return @[]; 377 #else 376 378 // Plug-ins are found in order of precedence. 377 379 // If there are duplicates, the first found plug-in is used. … … 384 386 [[NSBundle mainBundle] builtInPlugInsPath], 385 387 ]; 386 #else387 // iOS plug-ins are all located in /System/Library/Internet Plug-Ins388 #if !PLATFORM(IOS_FAMILY_SIMULATOR)389 NSArray *systemLibrary = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSSystemDomainMask, YES);390 if (!systemLibrary || [systemLibrary count] == 0)391 return nil;392 NSString *systemDir = (NSString*)[systemLibrary objectAtIndex:0];393 #else394 NSString* platformRootDir = [NSString stringWithUTF8String:WebKitPlatformSystemRootDirectory()];395 NSString *systemDir = [platformRootDir stringByAppendingPathComponent:@"System/Library"];396 #endif397 return @[[systemDir stringByAppendingPathComponent:@"Internet Plug-Ins"]];398 388 #endif 399 389 }
Note:
See TracChangeset
for help on using the changeset viewer.