Merge pull request #17106 from Snuffleupagus/bug-1854145

Don't store page-level data, in the API, after cleanup has run (bug 1854145)
This commit is contained in:
Jonas Jenwald 2023-10-12 10:47:23 +02:00 committed by GitHub
commit 158ab5bf37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2768,6 +2768,11 @@ class WorkerTransport {
if (pageProxy.objs.has(id)) {
return;
}
// Don't store data *after* cleanup has successfully run, see bug 1854145.
if (pageProxy._intentStates.size === 0) {
imageData?.bitmap?.close(); // Release any `ImageBitmap` data.
return;
}
switch (type) {
case "Image":