mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #1442 - Part 24 - Prevent FetchStream from incorrectly running on the main thread. This prevents a deadlock and JSContext related crashes, however this should eventually be replaced by an EventTargetFor() call when the Dispatcher API is implemented. Also now that ReadableStream appears stable, toggle the preferences true by default.
This commit is contained in:
parent
836d36dc6d
commit
f3991f9821
2 changed files with 5 additions and 3 deletions
|
|
@ -403,7 +403,9 @@ FetchStream::FetchStream(nsIGlobalObject* aGlobal,
|
|||
, mGlobal(aGlobal)
|
||||
, mStreamHolder(aStreamHolder)
|
||||
, mOriginalInputStream(aInputStream)
|
||||
, mOwningEventTarget(nullptr)
|
||||
// TODO: Replace with mGlobal->EventTargetFor(TaskCategory::Other)
|
||||
// When we have the Dispatcher API in the tree, see Issue #1442
|
||||
, mOwningEventTarget(NS_GetCurrentThread())
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(aInputStream);
|
||||
MOZ_DIAGNOSTIC_ASSERT(aStreamHolder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue