Bug 215490 - canvas can't release when close the tab create by safari web extension
Summary: canvas can't release when close the tab create by safari web extension
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari Technology Preview
Hardware: Mac Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-13 21:13 PDT by pauliu
Modified: 2020-09-02 19:32 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pauliu 2020-08-13 21:13:21 PDT
the safari version info Version 14.0 (15610.1.23, 15610), 
I try to port my chrome extension to safari, and use chrome.tabs.create to create tab and use canvas ,and close the tab, but didn't release the memory. and repeat several times have the warning Total canvas memory use exceeds the maximum limit (2151 MB).pain
Comment 1 Radar WebKit Bug Importer 2020-08-15 12:11:48 PDT
<rdar://problem/67147337>
Comment 2 Timothy Hatcher 2020-08-18 14:15:57 PDT
Can you attach a sample extension project?
Comment 3 Dean Jackson 2020-08-20 14:58:21 PDT
I've emailed the originator.
Comment 4 Dean Jackson 2020-08-26 16:52:08 PDT
Response was:

  I resize the canvas to 0x0,  and seem to fix the problem. 
the web extension process memory decrease evidently,when close the canvas tab.


But that seems like the problem is still there. I'll have to make a safari extension that opens up a tab with a canvas.
Comment 5 Dean Jackson 2020-09-02 19:32:24 PDT
I've confirmed that the WebContent process for the created tab doesn't go away when the tab is closed. It will go away when enough new tabs are created, but since you can't get back to a closed tab this does have the potential to hold onto memory for a while.

This is not a WebKit bug however, so I'll close this. It will be tracked by the radar linked above.