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:
Brian Smith 2023-09-28 22:06:25 -05:00 • committed by roytam1
commit e22845913d
3 changed files with 22 additions and 17 deletions

View file

@ -35,10 +35,10 @@ public:
NS_DECL_NSIINPUTSTREAMCALLBACK
NS_DECL_NSIOBSERVER
static JSObject*
static void
Create(JSContext* aCx, FetchStreamHolder* aStreamHolder,
nsIGlobalObject* aGlobal, nsIInputStream* aInputStream,
ErrorResult& aRv);
JS::MutableHandle<JSObject*> aStream, ErrorResult& aRv);
void
Close();