⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294858 in webkit


Ignore:
Timestamp:
May 25, 2022, 6:36:41 PM (4 years ago)
Author:
achristensen@apple.com
Message:

Stop searching for WebKitLegacy plug-ins on iOS
​https://bugs.webkit.org/show_bug.cgi?id=240923
<rdar://92748471>

Reviewed by Chris Dumez.

NPAPI plug-in support has been completely removed, but support for plugInViewWithArguments:
is being kept on macOS until one more internal user of it finishes migration to WKWebView
even though developer.apple.com says it is "unsupported in OS X v10.7 and later"

On iOS, though, there is a concern about the API we are using to get the path to
/System/Library/Internet Plug-Ins and since it is unused, let's just remove it for now.
Soon we will remove all the plug-in support code.

  • Source/WebKitLegacy/mac/Plugins/WebPluginDatabase.mm:

(+[WebPluginDatabase _defaultPlugInPaths]):

Canonical link: ​https://commits.webkit.org/250990@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/mac/Plugins/WebPluginDatabase.mm

    r285047 r294858  
    373373+ (NSArray *)_defaultPlugInPaths
    374374{
    375 #if !PLATFORM(IOS_FAMILY)
     375#if PLATFORM(IOS_FAMILY)
     376    return @[];
     377#else
    376378    // Plug-ins are found in order of precedence.
    377379    // If there are duplicates, the first found plug-in is used.
    … …  
    384386        [[NSBundle mainBundle] builtInPlugInsPath],
    385387    ];
    386 #else
    387     // iOS plug-ins are all located in /System/Library/Internet Plug-Ins
    388 #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 #else
    394     NSString* platformRootDir = [NSString stringWithUTF8String:WebKitPlatformSystemRootDirectory()];
    395     NSString *systemDir = [platformRootDir stringByAppendingPathComponent:@"System/Library"];
    396 #endif
    397     return @[[systemDir stringByAppendingPathComponent:@"Internet Plug-Ins"]];
    398388#endif
    399389}
Note: See TracChangeset for help on using the changeset viewer.