mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1024388: Attempt to retarget OnDataAvailable to the HTML parser thread for all channels, not just HTTP channels. r=bz
This commit is contained in:
parent
b29ba7e116
commit
823b7d1989
@ -933,14 +933,18 @@ nsHtml5StreamParser::OnStartRequest(nsIRequest* aRequest, nsISupports* aContext)
|
||||
mReparseForbidden = true;
|
||||
mFeedChardet = false; // can't restart anyway
|
||||
}
|
||||
}
|
||||
|
||||
// Attempt to retarget delivery of data (via OnDataAvailable) to the parser
|
||||
// thread, rather than through the main thread.
|
||||
nsCOMPtr<nsIThreadRetargetableRequest> threadRetargetableRequest =
|
||||
do_QueryInterface(mRequest);
|
||||
if (threadRetargetableRequest) {
|
||||
threadRetargetableRequest->RetargetDeliveryTo(mThread);
|
||||
}
|
||||
// Attempt to retarget delivery of data (via OnDataAvailable) to the parser
|
||||
// thread, rather than through the main thread.
|
||||
nsCOMPtr<nsIThreadRetargetableRequest> threadRetargetableRequest =
|
||||
do_QueryInterface(mRequest, &rv);
|
||||
if (threadRetargetableRequest) {
|
||||
rv = threadRetargetableRequest->RetargetDeliveryTo(mThread);
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Failed to retarget HTML data delivery to the parser thread.");
|
||||
}
|
||||
|
||||
if (mCharsetSource == kCharsetFromParentFrame) {
|
||||
|
Loading…
Reference in New Issue
Block a user