Commit 2bffcedc authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Update window URI when its binding is redirected.

parent 1fb705de
......@@ -112,3 +112,4 @@ HRESULT super_navigate(HTMLWindow*,IUri*,const WCHAR*,BYTE*,DWORD) DECLSPEC_HIDD
HRESULT create_channelbsc(IMoniker*,const WCHAR*,BYTE*,DWORD,nsChannelBSC**) DECLSPEC_HIDDEN;
HRESULT channelbsc_load_stream(nsChannelBSC*,IStream*) DECLSPEC_HIDDEN;
void channelbsc_set_channel(nsChannelBSC*,nsChannel*,nsIStreamListener*,nsISupports*) DECLSPEC_HIDDEN;
IUri *nsuri_get_uri(nsWineURI*);
......@@ -1134,6 +1134,17 @@ static nsresult NSAPI nsAsyncVerifyRedirectCallback_AsyncOnChannelRedirect(nsIAs
ERR("AddRequest failed: %08x\n", nsres);
}
if(This->bsc->window) {
IUri *uri = nsuri_get_uri(This->nschannel->uri);
if(uri) {
set_current_uri(This->bsc->window, uri);
IUri_Release(uri);
}else {
WARN("Could not get IUri from nsWineURI\n");
}
}
return NS_OK;
}
......
......@@ -84,6 +84,15 @@ static BOOL ensure_uri(nsWineURI *This)
return TRUE;
}
IUri *nsuri_get_uri(nsWineURI *nsuri)
{
if(!ensure_uri(nsuri))
return NULL;
IUri_AddRef(nsuri->uri);
return nsuri->uri;
}
static IUri *get_uri_nofrag(IUri *uri)
{
IUriBuilder *uri_builder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment