mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822094 - Part 1: Unwrap the transfable parameter if allowed. r=sfink
This commit is contained in:
parent
c6e3e5ce34
commit
23eedb7035
@ -488,7 +488,11 @@ JSStructuredCloneWriter::parseTransferable()
|
||||
return false;
|
||||
}
|
||||
|
||||
JSObject* tObj = &v.toObject();
|
||||
JSObject* tObj = UnwrapObjectChecked(&v.toObject());
|
||||
if (!tObj) {
|
||||
JS_ReportError(context(), "Permission denied to access object");
|
||||
return false;
|
||||
}
|
||||
if (!tObj->isArrayBuffer()) {
|
||||
reportErrorTransferable();
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user