mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 21:37:32 +09:00
[Image] Image cleanup
This commit is contained in:
parent
e5d81e17d3
commit
9060ad1fce
1 changed files with 10 additions and 1 deletions
|
|
@ -96,6 +96,8 @@ imgRequest::Init(nsIURI *aURI,
|
||||||
ReferrerPolicy aReferrerPolicy)
|
ReferrerPolicy aReferrerPolicy)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(NS_IsMainThread(), "Cannot use nsIURI off main thread!");
|
MOZ_ASSERT(NS_IsMainThread(), "Cannot use nsIURI off main thread!");
|
||||||
|
// Init() can only be called once, and that's before it can be used off
|
||||||
|
// mainthread
|
||||||
|
|
||||||
LOG_FUNC(gImgLog, "imgRequest::Init");
|
LOG_FUNC(gImgLog, "imgRequest::Init");
|
||||||
|
|
||||||
|
|
@ -800,7 +802,14 @@ imgRequest::OnStopRequest(nsIRequest* aRequest,
|
||||||
|
|
||||||
RefPtr<imgRequest> strongThis = this;
|
RefPtr<imgRequest> strongThis = this;
|
||||||
|
|
||||||
if (mIsMultiPartChannel && mNewPartPending) {
|
bool isMultipart = false;
|
||||||
|
bool newPartPending = false;
|
||||||
|
{
|
||||||
|
MutexAutoLock lock(mMutex);
|
||||||
|
isMultipart = mIsMultiPartChannel;
|
||||||
|
newPartPending = mNewPartPending;
|
||||||
|
}
|
||||||
|
if (isMultipart && newPartPending) {
|
||||||
OnDataAvailable(aRequest, ctxt, nullptr, 0, 0);
|
OnDataAvailable(aRequest, ctxt, nullptr, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue