Skip to content
Snippets Groups Projects
Commit 447f1c89 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

mshtml: Get rid of no longer needed support for new window navigation in before_async_open.

parent 35710be1
Branches
Tags
No related merge requests found
......@@ -225,18 +225,8 @@ static nsresult before_async_open(nsChannel *channel, NSContainer *container, BO
{
HTMLDocumentObj *doc = container->doc;
BSTR display_uri;
DWORD hlnf = 0;
HRESULT hres;
if(!doc) {
NSContainer *container_iter = container;
hlnf = HLNF_OPENINNEWWINDOW;
while(!container_iter->doc)
container_iter = container_iter->parent;
doc = container_iter->doc;
}
if(!doc->client) {
*cancel = TRUE;
return NS_OK;
......@@ -246,18 +236,13 @@ static nsresult before_async_open(nsChannel *channel, NSContainer *container, BO
if(FAILED(hres))
return NS_ERROR_FAILURE;
if(!hlnf) {
BOOL b;
b = !exec_shldocvw_67(doc, display_uri);
if(b) {
SysFreeString(display_uri);
*cancel = FALSE;
return NS_OK;
}
if(!exec_shldocvw_67(doc, display_uri)) {
SysFreeString(display_uri);
*cancel = FALSE;
return NS_OK;
}
hres = hlink_frame_navigate(&doc->basedoc, display_uri, channel, hlnf, cancel);
hres = hlink_frame_navigate(&doc->basedoc, display_uri, channel, 0, cancel);
SysFreeString(display_uri);
if(FAILED(hres))
*cancel = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment