Start the synchronous load in the WebCore thread.

Fix http://b/issue?id=2480606
This commit is contained in:
Grace Kloba
2010-03-01 23:10:10 -08:00
parent 883dbacb12
commit 5f38e1aaa1

View File

@@ -110,8 +110,12 @@ class FrameLoader {
return false;
}
mNetwork = Network.getInstance(mListener.getContext());
WebViewWorker.getHandler().obtainMessage(
WebViewWorker.MSG_ADD_HTTPLOADER, this).sendToTarget();
if (mListener.isSynchronous()) {
handleHTTPLoad();
} else {
WebViewWorker.getHandler().obtainMessage(
WebViewWorker.MSG_ADD_HTTPLOADER, this).sendToTarget();
}
return true;
} else if (handleLocalFile(url, mListener, mSettings)) {
return true;