Title: [240624] trunk/Source/WebKit
Revision
240624
Author
[email protected]
Date
2019-01-28 17:12:31 -0800 (Mon, 28 Jan 2019)

Log Message

[Cocoa] Add SPI to _WKUserContentExtensionStore to retrieve its underlying WKContentRuleListStore
https://bugs.webkit.org/show_bug.cgi?id=193927

Reviewed by Tim Horton.

This is useful for clients migrating from _WKUserContentExtensionStore to the modern
WKContentRuleList* APIs.

* UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm:
(-[_WKUserContentExtensionStore _contentRuleListStore]):
* UIProcess/API/Cocoa/_WKUserContentExtensionStorePrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (240623 => 240624)


--- trunk/Source/WebKit/ChangeLog	2019-01-29 01:07:36 UTC (rev 240623)
+++ trunk/Source/WebKit/ChangeLog	2019-01-29 01:12:31 UTC (rev 240624)
@@ -1,3 +1,17 @@
+2019-01-28  Andy Estes  <[email protected]>
+
+        [Cocoa] Add SPI to _WKUserContentExtensionStore to retrieve its underlying WKContentRuleListStore
+        https://bugs.webkit.org/show_bug.cgi?id=193927
+
+        Reviewed by Tim Horton.
+
+        This is useful for clients migrating from _WKUserContentExtensionStore to the modern
+        WKContentRuleList* APIs.
+
+        * UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm:
+        (-[_WKUserContentExtensionStore _contentRuleListStore]):
+        * UIProcess/API/Cocoa/_WKUserContentExtensionStorePrivate.h:
+
 2019-01-28  David Kilzer  <[email protected]>
 
         Move soft-linking of ManagedConfiguration.framework out of ManagedConfigurationSPI.h

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm (240623 => 240624)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm	2019-01-29 01:07:36 UTC (rev 240623)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm	2019-01-29 01:12:31 UTC (rev 240624)
@@ -127,6 +127,11 @@
     return self;
 }
 
+- (WKContentRuleListStore *)_contentRuleListStore
+{
+    return _contentRuleListStore.get();
+}
+
 @end
 
 #endif // WK_API_ENABLED

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStorePrivate.h (240623 => 240624)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStorePrivate.h	2019-01-29 01:07:36 UTC (rev 240623)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentExtensionStorePrivate.h	2019-01-29 01:12:31 UTC (rev 240624)
@@ -35,7 +35,8 @@
 - (void)_removeAllContentExtensions;
 - (void)_invalidateContentExtensionVersionForIdentifier:(NSString *)identifier;
 
-- (id)_initWithWKContentRuleListStore:(WKContentRuleListStore*)contentRuleListStore WK_API_AVAILABLE(macosx(10.13), ios(11.0));
+- (id)_initWithWKContentRuleListStore:(WKContentRuleListStore *)contentRuleListStore WK_API_AVAILABLE(macosx(10.13), ios(11.0));
+@property (nonatomic, readonly) WKContentRuleListStore *_contentRuleListStore WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
 
 @end
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to