mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #1442 - Part 17 - Creating FetchStream as a out param in order to avoid JS hazards https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
This commit is contained in:
parent
529bc13f05
commit
e22845913d
3 changed files with 22 additions and 17 deletions
|
|
@ -1097,12 +1097,9 @@ FetchBody<Derived>::GetBody(JSContext* aCx,
|
|||
return;
|
||||
}
|
||||
|
||||
JS::Rooted<JSObject*> body(aCx,
|
||||
FetchStream::Create(aCx,
|
||||
this,
|
||||
DerivedClass()->GetParentObject(),
|
||||
inputStream,
|
||||
aRv));
|
||||
JS::Rooted<JSObject*> body(aCx);
|
||||
FetchStream::Create(aCx, this, DerivedClass()->GetParentObject(),
|
||||
inputStream, &body, aRv);
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue