REGRESSION: API test failure: _WKDownload.OriginatingWebView
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Dec 2016 23:58:46 +0000 (23:58 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Dec 2016 23:58:46 +0000 (23:58 +0000)
commitb0ec7b8b257e91037ba351c633ace8ba07a3e66b
treeaac7c196466fa7c3b2c59f9346733538ff3c5bb9
parentde586e286e5d927348ab55e9369b5f701eeca459
REGRESSION: API test failure: _WKDownload.OriginatingWebView
https://bugs.webkit.org/show_bug.cgi?id=166033
<rdar://problem/29758428>

Reviewed by Simon Fraser.

Add an @autoreleasepool around the code that allocates the WKWebView,
so that it can be destroyed by removing the last reference in _downloadDidStart.

* TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
(TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm