Title: [276454] trunk
- Revision
- 276454
- Author
- [email protected]
- Date
- 2021-04-22 12:48:17 -0700 (Thu, 22 Apr 2021)
Log Message
v2: REGRESSION(r266890): [Cocoa] Fix API::InspectorClient leak
https://bugs.webkit.org/show_bug.cgi?id=223899
<rdar://problem/75249282>
Reviewed by Devin Rousso.
Address post-review feedback.
Source/WebKit:
* UIProcess/API/Cocoa/_WKInspectorTesting.mm:
(-[_WKInspector _openURLExternallyForTesting:useFrontendAPI:]):
Tools:
* TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm:
(TEST):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (276453 => 276454)
--- trunk/Source/WebKit/ChangeLog 2021-04-22 19:32:20 UTC (rev 276453)
+++ trunk/Source/WebKit/ChangeLog 2021-04-22 19:48:17 UTC (rev 276454)
@@ -1,3 +1,16 @@
+2021-04-22 BJ Burg <[email protected]>
+
+ v2: REGRESSION(r266890): [Cocoa] Fix API::InspectorClient leak
+ https://bugs.webkit.org/show_bug.cgi?id=223899
+ <rdar://problem/75249282>
+
+ Reviewed by Devin Rousso.
+
+ Address post-review feedback.
+
+ * UIProcess/API/Cocoa/_WKInspectorTesting.mm:
+ (-[_WKInspector _openURLExternallyForTesting:useFrontendAPI:]):
+
2021-04-22 Alex Christensen <[email protected]>
Add some new messages.in files to the Mac CMake build
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspectorTesting.mm (276453 => 276454)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspectorTesting.mm 2021-04-22 19:32:20 UTC (rev 276453)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspectorTesting.mm 2021-04-22 19:48:17 UTC (rev 276454)
@@ -49,11 +49,11 @@
- (void)_openURLExternallyForTesting:(NSURL *)url useFrontendAPI:(BOOL)useFrontendAPI
{
if (useFrontendAPI)
- _inspector->evaluateInFrontendForTesting(_javascript_SnippetToOpenURLExternally([url copy]));
+ _inspector->evaluateInFrontendForTesting(_javascript_SnippetToOpenURLExternally(url));
else {
// Force the navigation request to be handled naturally through the
// internal NavigationDelegate of WKInspectorViewController.
- [self.inspectorWebView loadRequest:[NSURLRequest requestWithURL:[url copy]]];
+ [self.inspectorWebView loadRequest:[NSURLRequest requestWithURL:url]];
}
}
Modified: trunk/Tools/ChangeLog (276453 => 276454)
--- trunk/Tools/ChangeLog 2021-04-22 19:32:20 UTC (rev 276453)
+++ trunk/Tools/ChangeLog 2021-04-22 19:48:17 UTC (rev 276454)
@@ -1,3 +1,16 @@
+2021-04-22 BJ Burg <[email protected]>
+
+ v2: REGRESSION(r266890): [Cocoa] Fix API::InspectorClient leak
+ https://bugs.webkit.org/show_bug.cgi?id=223899
+ <rdar://problem/75249282>
+
+ Reviewed by Devin Rousso.
+
+ Address post-review feedback.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm:
+ (TEST):
+
2021-04-22 Sam Sneddon <[email protected]>
Ensure all non-local AutoInstalled libraries specify version
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm (276453 => 276454)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm 2021-04-22 19:32:20 UTC (rev 276453)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm 2021-04-22 19:48:17 UTC (rev 276454)
@@ -221,7 +221,7 @@
[[webView _inspector] show];
TestWebKitAPI::Util::run(&didAttachLocalInspectorCalled);
- urlToOpen = adoptNS([NSURL URLWithString:@"https://www.webkit.org/"]);
+ urlToOpen = [NSURL URLWithString:@"https://www.webkit.org/"];
// Check the case where the load is intercepted by the navigation delegate.
[[webView _inspector] _openURLExternallyForTesting:urlToOpen.get() useFrontendAPI:NO];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes