зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2692e7aaefbd (bug 1434308)
--HG-- extra : rebase_source : 70b6fad7a734e6faac09e7518f4fffa587fa1abb
This commit is contained in:
Родитель
dc1f619d39
Коммит
c9ee11f480
|
@ -73,7 +73,7 @@ struct IDBObjectStore::StructuredCloneWriteInfo
|
|||
uint64_t mOffsetToKeyProp;
|
||||
|
||||
explicit StructuredCloneWriteInfo(IDBDatabase* aDatabase)
|
||||
: mCloneBuffer(JS::StructuredCloneScope::DifferentProcess, nullptr,
|
||||
: mCloneBuffer(JS::StructuredCloneScope::SameProcessSameThread, nullptr,
|
||||
nullptr)
|
||||
, mDatabase(aDatabase)
|
||||
, mOffsetToKeyProp(0)
|
||||
|
@ -1331,7 +1331,7 @@ IDBObjectStore::DeserializeValue(JSContext* aCx,
|
|||
// FIXME: Consider to use StructuredCloneHolder here and in other
|
||||
// deserializing methods.
|
||||
if (!JS_ReadStructuredClone(aCx, aCloneReadInfo.mData, JS_STRUCTURED_CLONE_VERSION,
|
||||
JS::StructuredCloneScope::DifferentProcess,
|
||||
JS::StructuredCloneScope::SameProcessSameThread,
|
||||
aValue, &callbacks, &aCloneReadInfo)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -1504,7 +1504,7 @@ private:
|
|||
|
||||
if (!JS_ReadStructuredClone(aCx, mCloneReadInfo.mData,
|
||||
JS_STRUCTURED_CLONE_VERSION,
|
||||
JS::StructuredCloneScope::DifferentProcess,
|
||||
JS::StructuredCloneScope::SameProcessSameThread,
|
||||
aValue, &callbacks, &mCloneReadInfo)) {
|
||||
return NS_ERROR_DOM_DATA_CLONE_ERR;
|
||||
}
|
||||
|
@ -1618,7 +1618,7 @@ private:
|
|||
|
||||
if (!JS_ReadStructuredClone(aCx, mCloneReadInfo.mData,
|
||||
JS_STRUCTURED_CLONE_VERSION,
|
||||
JS::StructuredCloneScope::DifferentProcess,
|
||||
JS::StructuredCloneScope::SameProcessSameThread,
|
||||
aValue, &callbacks, &mCloneReadInfo)) {
|
||||
return NS_ERROR_DOM_DATA_CLONE_ERR;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче