[Webkit-unassigned] [Bug 203990] New: Safari leaks memory of objects send through postMessage
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 7 22:14:24 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=203990
Bug ID: 203990
Summary: Safari leaks memory of objects send through
postMessage
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.14
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mail at kkaefer.com
Created attachment 383109
--> https://bugs.webkit.org/attachment.cgi?id=383109&action=review
Memory leak with web workers
Safari leaks memory when sending objects with `postMessage`. It happens when the message isn't accessed in any way on the receiver's side. As soon as the message object is referenced, even without modifying or actually reading its contents, the memory leak goes away. This applies to both webworkers and MessageChannel.
In the attached reproduction HTML pages, memory use grows to several gigabytes in the span of a few seconds. Uncommenting the `message.data;` statement removes the memory leak.
--
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/20191108/d1e41c20/attachment.htm>
More information about the webkit-unassigned
mailing list