fix ubO pt.5

This commit is contained in:
wuggy 2026-09-14 15:57:30 -07:00
commit ae54ac8e28
8 changed files with 63 additions and 6 deletions

View file

@ -2323,11 +2323,16 @@ JSStructuredCloneReader::readHeader()
return false;
}
// Some older IndexedDB writers stored the compatibility marker in the
// header. Read those records as durable cross-process data.
if (storedScope == JS::StructuredCloneScope::DifferentProcessForIndexedDB) {
storedScope = JS::StructuredCloneScope::DifferentProcess;
}
if (allowedScope == JS::StructuredCloneScope::DifferentProcessForIndexedDB) {
// Bug 1434308 and bug 1458320 - the scopes stored in old IndexedDB
// clones are incorrect. Treat them as if they were DifferentProcess.
allowedScope = JS::StructuredCloneScope::DifferentProcess;
return true;
}
if (storedScope < allowedScope) {