mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1442 - Part 5: Implement WebIDL bindings for Streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
This commit is contained in:
parent
9b9075eef6
commit
0701dccaca
14 changed files with 255 additions and 157 deletions
|
|
@ -2827,7 +2827,7 @@ XMLHttpRequestMainThread::Send(nsIVariant* aVariant)
|
|||
nsresult rv = aVariant->GetAsJSVal(&realVal);
|
||||
if (NS_SUCCEEDED(rv) && !realVal.isPrimitive()) {
|
||||
JS::Rooted<JSObject*> obj(rootingCx, realVal.toObjectOrNull());
|
||||
RootedTypedArray<ArrayBuffer> buf(rootingCx);
|
||||
RootedSpiderMonkeyInterface<ArrayBuffer> buf(rootingCx);
|
||||
if (buf.Init(obj)) {
|
||||
RequestBody<const ArrayBuffer> body(&buf);
|
||||
return SendInternal(&body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue