mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1041148 - Move HoldJSObjects call to XMLHttpRequest constructor to simplify the code. r=bz
This commit is contained in:
parent
997b3364e7
commit
1128c60ac3
@ -1577,6 +1577,8 @@ XMLHttpRequest::XMLHttpRequest(WorkerPrivate* aWorkerPrivate)
|
||||
mWorkerPrivate->AssertIsOnWorkerThread();
|
||||
|
||||
SetIsDOMBinding();
|
||||
|
||||
mozilla::HoldJSObjects(this);
|
||||
}
|
||||
|
||||
XMLHttpRequest::~XMLHttpRequest()
|
||||
@ -2365,7 +2367,4 @@ XMLHttpRequest::UpdateState(const StateData& aStateData,
|
||||
else {
|
||||
mStateData = aStateData;
|
||||
}
|
||||
if (mStateData.mResponse.isGCThing()) {
|
||||
mozilla::HoldJSObjects(this);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user