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:
commit
158ab5bf37
@ -2768,6 +2768,11 @@ class WorkerTransport {
|
|||||||
if (pageProxy.objs.has(id)) {
|
if (pageProxy.objs.has(id)) {
|
||||||
return;
|
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) {
|
switch (type) {
|
||||||
case "Image":
|
case "Image":
|
||||||
|
Loading…
Reference in New Issue
Block a user