Title: [241618] trunk/Source/WebKit
Revision
241618
Author
[email protected]
Date
2019-02-15 14:19:04 -0800 (Fri, 15 Feb 2019)

Log Message

Add SPI version of WKPreferences.safeBrowsingEnabled
https://bugs.webkit.org/show_bug.cgi?id=194718
<rdar://problem/48122993>

Rubber-stamped by Brady Eidson.

* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences _isSafeBrowsingEnabled]):
(-[WKPreferences _setSafeBrowsingEnabled:]):
* UIProcess/API/Cocoa/WKPreferencesPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (241617 => 241618)


--- trunk/Source/WebKit/ChangeLog	2019-02-15 22:18:36 UTC (rev 241617)
+++ trunk/Source/WebKit/ChangeLog	2019-02-15 22:19:04 UTC (rev 241618)
@@ -1,3 +1,16 @@
+2019-02-15  Alex Christensen  <[email protected]>
+
+        Add SPI version of WKPreferences.safeBrowsingEnabled
+        https://bugs.webkit.org/show_bug.cgi?id=194718
+        <rdar://problem/48122993>
+
+        Rubber-stamped by Brady Eidson.
+
+        * UIProcess/API/Cocoa/WKPreferences.mm:
+        (-[WKPreferences _isSafeBrowsingEnabled]):
+        (-[WKPreferences _setSafeBrowsingEnabled:]):
+        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+
 2019-02-15  Wenson Hsieh  <[email protected]>
 
         [iOS] WKWebView callout bar is missing Change Writing Direction item

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (241617 => 241618)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-02-15 22:18:36 UTC (rev 241617)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-02-15 22:19:04 UTC (rev 241618)
@@ -1336,6 +1336,16 @@
 #endif
 }
 
+- (BOOL)_isSafeBrowsingEnabled
+{
+    return _preferences->safeBrowsingEnabled();
+}
+
+- (void)_setSafeBrowsingEnabled:(BOOL)enabled
+{
+    _preferences->setSafeBrowsingEnabled(enabled);
+}
+
 - (void)_setVideoQualityIncludesDisplayCompositingEnabled:(BOOL)videoQualityIncludesDisplayCompositingEnabled
 {
     _preferences->setVideoQualityIncludesDisplayCompositingEnabled(videoQualityIncludesDisplayCompositingEnabled);

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (241617 => 241618)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-02-15 22:18:36 UTC (rev 241617)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-02-15 22:19:04 UTC (rev 241618)
@@ -143,6 +143,8 @@
 
 @property (nonatomic, setter=_setShouldEnableTextAutosizingBoost:) BOOL _shouldEnableTextAutosizingBoost WK_API_AVAILABLE(macosx(10.14), ios(12.0));
 
+@property (nonatomic, getter=_isSafeBrowsingEnabled, setter=_setSafeBrowsingEnabled:) BOOL _safeBrowsingEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
+
 @property (nonatomic, setter=_setStorageAccessPromptsEnabled:) BOOL _storageAccessPromptsEnabled WK_API_AVAILABLE(macosx(10.14), ios(12.0));
 @property (nonatomic, setter=_setColorFilterEnabled:) BOOL _colorFilterEnabled WK_API_AVAILABLE(macosx(10.14), ios(12.0));
 @property (nonatomic, setter=_setPunchOutWhiteBackgroundsInDarkMode:) BOOL _punchOutWhiteBackgroundsInDarkMode WK_API_AVAILABLE(macosx(10.14), ios(12.0));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to