Title: [241910] branches/safari-607-branch/Source/WebKit
Revision
241910
Author
[email protected]
Date
2019-02-21 14:55:15 -0800 (Thu, 21 Feb 2019)

Log Message

Cherry-pick r241618. rdar://problem/48243264

    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:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241618 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebKit/ChangeLog (241909 => 241910)


--- branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-21 22:55:12 UTC (rev 241909)
+++ branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-21 22:55:15 UTC (rev 241910)
@@ -1,5 +1,37 @@
 2019-02-21  Alan Coon  <[email protected]>
 
+        Cherry-pick r241618. rdar://problem/48243264
+
+    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:
+    
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    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-21  Alan Coon  <[email protected]>
+
         Cherry-pick r241855. rdar://problem/48267027
 
     [PSON] Make sure hung processes are not kept alive by suspended pages or process caching

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (241909 => 241910)


--- branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-02-21 22:55:12 UTC (rev 241909)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-02-21 22:55:15 UTC (rev 241910)
@@ -1326,6 +1326,16 @@
 #endif
 }
 
+- (BOOL)_isSafeBrowsingEnabled
+{
+    return _preferences->safeBrowsingEnabled();
+}
+
+- (void)_setSafeBrowsingEnabled:(BOOL)enabled
+{
+    _preferences->setSafeBrowsingEnabled(enabled);
+}
+
 - (void)_setVideoQualityIncludesDisplayCompositingEnabled:(BOOL)videoQualityIncludesDisplayCompositingEnabled
 {
     _preferences->setVideoQualityIncludesDisplayCompositingEnabled(videoQualityIncludesDisplayCompositingEnabled);

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (241909 => 241910)


--- branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-02-21 22:55:12 UTC (rev 241909)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-02-21 22:55:15 UTC (rev 241910)
@@ -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