forked from mirrors/gecko-dev
Bug 1937694, don't try to keep transferred ports alive for too long, a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D232405 Differential Revision: https://phabricator.services.mozilla.com/D233616
This commit is contained in:
parent
387c7ddc7b
commit
05d11eb6cb
1 changed files with 1 additions and 0 deletions
|
|
@ -390,6 +390,7 @@ void StructuredCloneHolder::Read(nsIGlobalObject* aGlobal, JSContext* aCx,
|
||||||
mGlobal = aGlobal;
|
mGlobal = aGlobal;
|
||||||
|
|
||||||
if (!StructuredCloneHolderBase::Read(aCx, aValue, aCloneDataPolicy)) {
|
if (!StructuredCloneHolderBase::Read(aCx, aValue, aCloneDataPolicy)) {
|
||||||
|
mTransferredPorts.Clear();
|
||||||
JS_ClearPendingException(aCx);
|
JS_ClearPendingException(aCx);
|
||||||
aRv.ThrowDataCloneError(mErrorMessage);
|
aRv.ThrowDataCloneError(mErrorMessage);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue