Title: [219698] trunk/Tools
- Revision
- 219698
- Author
- [email protected]
- Date
- 2017-07-20 13:34:29 -0700 (Thu, 20 Jul 2017)
Log Message
Test WebKit2CustomProtocolsTest.ProcessPoolDestroyedDuringLoading added in r219664 fails on El Capitan.
https://bugs.webkit.org/show_bug.cgi?id=174685
Reviewed by Andy Estes.
* TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
(TestWebKitAPI::TEST): Use a scoped AutodrainedPool instead of a RetainPtr<NSAutoreleasePool>.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (219697 => 219698)
--- trunk/Tools/ChangeLog 2017-07-20 19:06:21 UTC (rev 219697)
+++ trunk/Tools/ChangeLog 2017-07-20 20:34:29 UTC (rev 219698)
@@ -1,5 +1,15 @@
2017-07-20 Brady Eidson <[email protected]>
+ Test WebKit2CustomProtocolsTest.ProcessPoolDestroyedDuringLoading added in r219664 fails on El Capitan.
+ https://bugs.webkit.org/show_bug.cgi?id=174685
+
+ Reviewed by Andy Estes.
+
+ * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
+ (TestWebKitAPI::TEST): Use a scoped AutodrainedPool instead of a RetainPtr<NSAutoreleasePool>.
+
+2017-07-20 Brady Eidson <[email protected]>
+
Deprecate WebIconDatabase in WebKitLegacy/mac.
https://bugs.webkit.org/show_bug.cgi?id=174607
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm (219697 => 219698)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm 2017-07-20 19:06:21 UTC (rev 219697)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm 2017-07-20 20:34:29 UTC (rev 219698)
@@ -34,6 +34,7 @@
#import "TestProtocol.h"
#import <WebKit/WKContextPrivate.h>
#import <WebKit/WKProcessGroupPrivate.h>
+#import <wtf/AutodrainedPool.h>
#import <wtf/RetainPtr.h>
#if WK_API_ENABLED && PLATFORM(MAC)
@@ -170,20 +171,22 @@
{
[ProcessPoolDestroyedDuringLoadingProtocol registerWithScheme:@"custom"];
- auto autoreleasePool = adoptNS([[NSAutoreleasePool alloc] init]);
- auto browsingContextGroup = adoptNS([[WKBrowsingContextGroup alloc] initWithIdentifier:@"TestIdentifier"]);
- auto processGroup = adoptNS([[WKProcessGroup alloc] init]);
- auto wkView = adoptNS([[WKView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) processGroup:processGroup.get() browsingContextGroup:browsingContextGroup.get()]);
+ {
+ AutodrainedPool pool;
+ auto browsingContextGroup = adoptNS([[WKBrowsingContextGroup alloc] initWithIdentifier:@"TestIdentifier"]);
+ auto processGroup = adoptNS([[WKProcessGroup alloc] init]);
+ auto wkView = adoptNS([[WKView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) processGroup:processGroup.get() browsingContextGroup:browsingContextGroup.get()]);
- [[wkView browsingContextController] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"custom:///test"]]];
+ [[wkView browsingContextController] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"custom:///test"]]];
- Util::run(&isDone);
- isDone = false;
+ Util::run(&isDone);
+ isDone = false;
- processGroup = nil;
- wkView = nil;
- browsingContextGroup = nil;
- autoreleasePool = nil;
+ // Instead of relying on the block going out of scope, manually release these objects in this order
+ processGroup = nil;
+ wkView = nil;
+ browsingContextGroup = nil;
+ }
ASSERT(processPoolProtocolInstance);
[processPoolProtocolInstance finishTheLoad];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes