Commit 82c03141 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

ieframe: Send the original URL for error pages in FireNavigationComplete2 notification.

parent 76b19800
......@@ -758,6 +758,7 @@ static HRESULT WINAPI DocObjectService_FireNavigateComplete2(
ShellBrowser *This = impl_from_IDocObjectService(iface);
DocHost *doc_host = This->doc_host;
IHTMLPrivateWindow *priv_window;
const WCHAR *orig_url;
VARIANTARG params[2];
DISPPARAMS dp = {params, NULL, 2, 0};
VARIANT url_var;
......@@ -786,6 +787,13 @@ static HRESULT WINAPI DocObjectService_FireNavigateComplete2(
TRACE("got URL %s\n", debugstr_w(url));
set_dochost_url(This->doc_host, url);
orig_url = error_url_frag(url);
if(orig_url) {
BSTR tmp = SysAllocString(orig_url);
SysFreeString(url);
url = tmp;
}
V_VT(params) = (VT_BYREF|VT_VARIANT);
V_VARIANTREF(params) = &url_var;
......
......@@ -186,7 +186,6 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
arg = pDispParams->rgvarg;
ok(V_VT(arg) == (VT_BYREF | VT_VARIANT), "VT = %d\n", V_VT(arg));
ok(V_VT(V_VARIANTREF(arg)) == VT_BSTR, "VT = %d\n", V_VT(V_VARIANTREF(arg)));
todo_wine_if(called_Invoke_NAVIGATEERROR)
ok(!wcscmp(V_BSTR(V_VARIANTREF(arg)), navigate_url), "url = %s\n", wine_dbgstr_w(V_BSTR(V_VARIANTREF(arg))));
arg = pDispParams->rgvarg + 1;
......
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