Changeset 244465 in webkit
- Timestamp:
- Apr 19, 2019 2:04:24 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244464 r244465 1 2019-04-19 Brady Eidson <beidson@apple.com> 2 3 Deprecate WebKit2 plug-in support. 4 <rdar://problem/43812306> and https://bugs.webkit.org/show_bug.cgi?id=197080 5 6 Reviewed by Andy Estes. 7 8 * UIProcess/API/Cocoa/WKPreferences.h: 9 * UIProcess/API/Cocoa/WKPreferences.mm: 10 (-[WKPreferences encodeWithCoder:]): 11 (-[WKPreferences initWithCoder:]): 12 (-[WKPreferences javaEnabled]): 13 (-[WKPreferences setJavaEnabled:]): 14 (-[WKPreferences plugInsEnabled]): 15 (-[WKPreferences setPlugInsEnabled:]): 16 1 17 2019-04-19 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.h
r244451 r244465 53 53 54 54 #if !TARGET_OS_IPHONE 55 /*! @abstract A Boolean value indicating whether Java is enabled.56 @discussion The default value is NO.57 */58 @property (nonatomic) BOOL javaEnabled;59 60 /*! @abstract A Boolean value indicating whether plug-ins are enabled.61 @discussion The default value is NO.62 */63 @property (nonatomic) BOOL plugInsEnabled;64 65 55 /*! 66 56 @property tabFocusesLinks … … 72 62 73 63 @end 64 65 @interface WKPreferences (WKDeprecated) 66 67 @property (nonatomic) BOOL javaEnabled WK_API_DEPRECATED("Java is no longer supported", macos(10.10, WK_MAC_TBA)); 68 @property (nonatomic) BOOL plugInsEnabled WK_API_DEPRECATED("Plug-ins are no longer supported", macos(10.10, WK_MAC_TBA)); 69 70 @end -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm
r244451 r244465 70 70 71 71 #if PLATFORM(MAC) 72 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 72 73 [coder encodeBool:self.javaEnabled forKey:@"javaEnabled"]; 73 74 [coder encodeBool:self.plugInsEnabled forKey:@"plugInsEnabled"]; 75 ALLOW_DEPRECATED_DECLARATIONS_END 74 76 [coder encodeBool:self.tabFocusesLinks forKey:@"tabFocusesLinks"]; 75 77 #endif … … 86 88 87 89 #if PLATFORM(MAC) 90 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 88 91 self.javaEnabled = [coder decodeBoolForKey:@"javaEnabled"]; 89 92 self.plugInsEnabled = [coder decodeBoolForKey:@"plugInsEnabled"]; 93 ALLOW_DEPRECATED_DECLARATIONS_END 90 94 self.tabFocusesLinks = [coder decodeBoolForKey:@"tabFocusesLinks"]; 91 95 #endif … … 132 136 133 137 #if PLATFORM(MAC) 134 135 - (BOOL)javaEnabled136 {137 return _preferences->javaEnabled();138 }139 140 - (void)setJavaEnabled:(BOOL)javaEnabled141 {142 _preferences->setJavaEnabled(javaEnabled);143 }144 145 - (BOOL)plugInsEnabled146 {147 return _preferences->pluginsEnabled();148 }149 150 - (void)setPlugInsEnabled:(BOOL)plugInsEnabled151 {152 _preferences->setPluginsEnabled(plugInsEnabled);153 }154 138 155 139 - (BOOL)tabFocusesLinks … … 1362 1346 1363 1347 @end 1348 1349 #if !TARGET_OS_IPHONE 1350 1351 @implementation WKPreferences (WKDeprecated) 1352 1353 - (BOOL)javaEnabled 1354 { 1355 return _preferences->javaEnabled(); 1356 } 1357 1358 - (void)setJavaEnabled:(BOOL)javaEnabled 1359 { 1360 _preferences->setJavaEnabled(javaEnabled); 1361 } 1362 1363 - (BOOL)plugInsEnabled 1364 { 1365 return _preferences->pluginsEnabled(); 1366 } 1367 1368 - (void)setPlugInsEnabled:(BOOL)plugInsEnabled 1369 { 1370 _preferences->setPluginsEnabled(plugInsEnabled); 1371 } 1372 1373 @end 1374 1375 #endif
Note: See TracChangeset
for help on using the changeset viewer.