mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 791531 proxy callback on wrong thread after pac load r=biesi
This commit is contained in:
parent
2571779f22
commit
3e0d6fc9db
@ -61,6 +61,9 @@ struct nsProtocolInfo {
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
// The nsPACManCallback portion of this implementation should be run
|
||||
// on the main thread - so call nsPACMan::AsyncGetProxyForURI() with
|
||||
// a true mainThreadResponse parameter.
|
||||
class nsAsyncResolveRequest MOZ_FINAL : public nsIRunnable
|
||||
, public nsPACManCallback
|
||||
, public nsICancelable
|
||||
@ -214,7 +217,7 @@ private:
|
||||
// now that the load is triggered, we can resubmit the query
|
||||
nsRefPtr<nsAsyncResolveRequest> newRequest =
|
||||
new nsAsyncResolveRequest(mPPS, mURI, mResolveFlags, mCallback);
|
||||
rv = mPPS->mPACMan->AsyncGetProxyForURI(mURI, newRequest, false);
|
||||
rv = mPPS->mPACMan->AsyncGetProxyForURI(mURI, newRequest, true);
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
@ -954,6 +957,11 @@ nsProtocolProxyService::ReloadPAC()
|
||||
}
|
||||
|
||||
// When sync interface is removed this can go away too
|
||||
// The nsPACManCallback portion of this implementation should be run
|
||||
// off the main thread, because it uses a condvar for signaling and
|
||||
// the main thread is blocking on that condvar -
|
||||
// so call nsPACMan::AsyncGetProxyForURI() with
|
||||
// a false mainThreadResponse parameter.
|
||||
class nsAsyncBridgeRequest MOZ_FINAL : public nsPACManCallback
|
||||
{
|
||||
NS_DECL_ISUPPORTS
|
||||
|
Loading…
Reference in New Issue
Block a user