Title: [292144] trunk/Tools
Revision
292144
Author
[email protected]
Date
2022-03-31 01:07:31 -0700 (Thu, 31 Mar 2022)

Log Message

Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary
https://bugs.webkit.org/show_bug.cgi?id=238583

Reviewed by Anders Carlsson.

Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary. It is incorrect as the
WKWebViewConfiguration.websiteDataStore getter is not ref'ing the store for us.

* TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:
(TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (292143 => 292144)


--- trunk/Tools/ChangeLog	2022-03-31 06:04:21 UTC (rev 292143)
+++ trunk/Tools/ChangeLog	2022-03-31 08:07:31 UTC (rev 292144)
@@ -1,3 +1,16 @@
+2022-03-31  Chris Dumez  <[email protected]>
+
+        Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary
+        https://bugs.webkit.org/show_bug.cgi?id=238583
+
+        Reviewed by Anders Carlsson.
+
+        Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary. It is incorrect as the
+        WKWebViewConfiguration.websiteDataStore getter is not ref'ing the store for us.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:
+        (TEST):
+
 2022-03-30  Sihui Liu  <[email protected]>
 
         Regression: WebsiteDataStore fails to read experimental feature values from NSUserDefaults

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm (292143 => 292144)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm	2022-03-31 06:04:21 UTC (rev 292143)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm	2022-03-31 08:07:31 UTC (rev 292144)
@@ -93,7 +93,7 @@
 
     @autoreleasepool {
         auto webView = adoptNS([WKWebView new]);
-        websiteDataStore = adoptNS([webView configuration].websiteDataStore);
+        websiteDataStore = [webView configuration].websiteDataStore;
         [websiteDataStore _setResourceLoadStatisticsEnabled:YES];
         [[webView configuration].processPool _registerURLSchemeAsSecure:@"test"];
         [[webView configuration].processPool _registerURLSchemeAsBypassingContentSecurityPolicy:@"test"];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to