shdocvw: Try to guess scheme for IHTMLPrivateWindow navigation too.
This commit is contained in:
parent
95a53a9ff6
commit
d230fad0a8
|
@ -760,7 +760,23 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
|
||||||
This->ready_state = READYSTATE_LOADING;
|
This->ready_state = READYSTATE_LOADING;
|
||||||
|
|
||||||
if(This->doc_navigate) {
|
if(This->doc_navigate) {
|
||||||
hres = async_doc_navigate(This, url, headers, post_data, post_data_len, TRUE);
|
WCHAR new_url[INTERNET_MAX_URL_LENGTH];
|
||||||
|
|
||||||
|
if(PathIsURLW(url)) {
|
||||||
|
new_url[0] = 0;
|
||||||
|
}else {
|
||||||
|
DWORD size;
|
||||||
|
|
||||||
|
size = sizeof(new_url)/sizeof(WCHAR);
|
||||||
|
hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME);
|
||||||
|
if(FAILED(hres)) {
|
||||||
|
WARN("UrlApplyScheme failed: %08x\n", hres);
|
||||||
|
new_url[0] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hres = async_doc_navigate(This, *new_url ? new_url : url, headers, post_data,
|
||||||
|
post_data_len, TRUE);
|
||||||
}else {
|
}else {
|
||||||
task_navigate_bsc_t *task;
|
task_navigate_bsc_t *task;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue