From 26442c563c97079a5d13046c41207564ba561d26 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Fri, 16 Oct 2020 08:14:59 -0700 Subject: [PATCH] browser(webkit): fix the datastore leak (#4163) --- browser_patches/webkit/BUILD_NUMBER | 4 ++-- browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER index 97094d14ce..857dd6a662 100644 --- a/browser_patches/webkit/BUILD_NUMBER +++ b/browser_patches/webkit/BUILD_NUMBER @@ -1,2 +1,2 @@ -1359 -Changed: yurys@chromium.org Thu Oct 15 14:23:29 PDT 2020 +1360 +Changed: pavel.feldman@gmail.com Thu Oct 15 14:25:29 PDT 2020 diff --git a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m index 054fce5f72..45d2309b76 100644 --- a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m +++ b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m @@ -333,7 +333,7 @@ const NSActivityOptions ActivityOptions = if (!proxyBypassList || ![proxyBypassList length]) proxyBypassList = _proxyBypassList; [dataStoreConfiguration setProxyConfiguration:[self proxyConfiguration:proxyServer WithBypassList:proxyBypassList]]; - browserContext.dataStore = [[WKWebsiteDataStore alloc] _initWithConfiguration:dataStoreConfiguration]; + browserContext.dataStore = [[[WKWebsiteDataStore alloc] _initWithConfiguration:dataStoreConfiguration] autorelease]; browserContext.processPool = [[[WKProcessPool alloc] _initWithConfiguration:processConfiguration] autorelease]; [browserContext.processPool _setDownloadDelegate:self]; [_browserContexts addObject:browserContext];