Bug 215490
Summary: | canvas can't release when close the tab create by safari web extension | ||
---|---|---|---|
Product: | WebKit | Reporter: | pauliu <wooyai> |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | bdakin, dino, timothy, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Mac | ||
OS: | Other |
pauliu
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/67147337>
Timothy Hatcher
Can you attach a sample extension project?
Dean Jackson
I've emailed the originator.
Dean Jackson
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.
Dean Jackson
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.