"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "platform/js/src/vm/StructuredClone.cpp" between
basilisk-2021.12.14-source.tar.xz and basilisk-2022.01.27-source.tar.xz

About: Basilisk is an XUL-based web-browser demonstrating the Unified XUL Platform (UXP), featuring the well-known Firefox-style interface and operation ("development software").

StructuredClone.cpp  (basilisk-2021.12.14-source.tar.xz):StructuredClone.cpp  (basilisk-2022.01.27-source.tar.xz)
skipping to change at line 548 skipping to change at line 548
return false; return false;
w.extractBuffer(bufp); w.extractBuffer(bufp);
return true; return true;
} }
bool bool
ReadStructuredClone(JSContext* cx, JSStructuredCloneData& data, ReadStructuredClone(JSContext* cx, JSStructuredCloneData& data,
JS::StructuredCloneScope scope, MutableHandleValue vp, JS::StructuredCloneScope scope, MutableHandleValue vp,
const JSStructuredCloneCallbacks* cb, void* cbClosure) const JSStructuredCloneCallbacks* cb, void* cbClosure)
{ {
if (data.Size() % 8) {
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
JSMSG_SC_BAD_SERIALIZED_DATA, "misaligned");
return false;
}
SCInput in(cx, data); SCInput in(cx, data);
JSStructuredCloneReader r(in, scope, cb, cbClosure); JSStructuredCloneReader r(in, scope, cb, cbClosure);
return r.read(vp); return r.read(vp);
} }
static bool static bool
StructuredCloneHasTransferObjects(const JSStructuredCloneData& data) StructuredCloneHasTransferObjects(const JSStructuredCloneData& data)
{ {
if (data.Size() < sizeof(uint64_t)) if (data.Size() < sizeof(uint64_t))
return false; return false;
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)