[Webkit-unassigned] [Bug 215729] New: Memory leak issue for WKWebView:evaluateJavaScript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 21 04:11:04 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=215729
Bug ID: 215729
Summary: Memory leak issue for WKWebView:evaluateJavaScript
Product: WebKit
Version: Safari 13
Hardware: iPhone / iPad
OS: iOS 13
Status: NEW
Severity: Critical
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: Michael.kreitmann at accenture.com
Created attachment 407008
--> https://bugs.webkit.org/attachment.cgi?id=407008&action=review
Xcode project to reproduce the issue
When calling evalueJavaScript function with a large String (i.e. a 100MB String) as show below, WebView will always hold a reference to this large string (allocating memory) and will not release the memory.
Executing this code several times, will cause WebKit task to crash (due to memory issues) and will restart.
__block NSString *script = [NSString stringWithFormat:@"//%@", [@"" stringByPaddingToLength:100*1024*1024 withString: @"?" startingAtIndex:0]];
[weakWebView evaluateJavaScript:script completionHandler:nil];
See attached Xcode project to reproduce the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200821/b915f6b5/attachment.htm>
More information about the webkit-unassigned
mailing list