Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
34944c89
Commit
34944c89
authored
Mar 03, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly handle IHlinkFrame::Navigate result.
parent
15fb147a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
navigate.c
dlls/mshtml/navigate.c
+17
-7
nsio.c
dlls/mshtml/nsio.c
+3
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
34944c89
...
...
@@ -709,7 +709,7 @@ HRESULT nsuri_to_url(LPCWSTR,BOOL,BSTR*);
HRESULT
create_doc_uri
(
HTMLWindow
*
,
WCHAR
*
,
nsWineURI
**
);
HRESULT
load_nsuri
(
HTMLWindow
*
,
nsWineURI
*
,
nsChannelBSC
*
,
DWORD
);
HRESULT
hlink_frame_navigate
(
HTMLDocument
*
,
LPCWSTR
,
nsIInputStream
*
,
DWORD
);
HRESULT
hlink_frame_navigate
(
HTMLDocument
*
,
LPCWSTR
,
nsIInputStream
*
,
DWORD
,
BOOL
*
);
HRESULT
navigate_url
(
HTMLWindow
*
,
const
WCHAR
*
,
const
WCHAR
*
);
HRESULT
set_frame_doc
(
HTMLFrameBase
*
,
nsIDOMDocument
*
);
...
...
dlls/mshtml/navigate.c
View file @
34944c89
...
...
@@ -1253,7 +1253,7 @@ void channelbsc_set_channel(nsChannelBSC *This, nsChannel *channel, nsIStreamLis
}
HRESULT
hlink_frame_navigate
(
HTMLDocument
*
doc
,
LPCWSTR
url
,
nsIInputStream
*
post_data_stream
,
DWORD
hlnf
)
nsIInputStream
*
post_data_stream
,
DWORD
hlnf
,
BOOL
*
cancel
)
{
IHlinkFrame
*
hlink_frame
;
nsChannelBSC
*
callback
;
...
...
@@ -1263,16 +1263,18 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url,
IHlink
*
hlink
;
HRESULT
hres
;
*
cancel
=
FALSE
;
hres
=
IOleClientSite_QueryInterface
(
doc
->
doc_obj
->
client
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
if
(
FAILED
(
hres
))
return
hres
;
return
S_OK
;
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
hlink_frame
);
IServiceProvider_Release
(
sp
);
if
(
FAILED
(
hres
))
return
hres
;
return
S_OK
;
hres
=
create_channelbsc
(
NULL
,
NULL
,
NULL
,
0
,
&
callback
);
if
(
FAILED
(
hres
))
{
...
...
@@ -1304,8 +1306,9 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url,
}
hres
=
IHlinkFrame_Navigate
(
hlink_frame
,
hlnf
,
bindctx
,
STATUSCLB
(
&
callback
->
bsc
),
hlink
);
IMoniker_Release
(
mon
);
*
cancel
=
hres
==
S_OK
;
hres
=
S_OK
;
}
IHlinkFrame_Release
(
hlink_frame
);
...
...
@@ -1339,16 +1342,23 @@ HRESULT navigate_url(HTMLWindow *window, const WCHAR *new_url, const WCHAR *base
hres
=
IDocHostUIHandler_TranslateUrl
(
window
->
doc_obj
->
hostui
,
0
,
url
,
&
translated_url
);
if
(
hres
==
S_OK
)
{
TRACE
(
"%08x %s -> %s
\n
"
,
hres
,
debugstr_w
(
url
),
debugstr_w
(
translated_url
));
strcpyW
(
url
,
translated_url
);
CoTaskMemFree
(
translated_url
);
}
}
if
(
window
->
doc_obj
&&
window
==
window
->
doc_obj
->
basedoc
.
window
)
{
hres
=
hlink_frame_navigate
(
&
window
->
doc
->
basedoc
,
url
,
NULL
,
0
);
if
(
SUCCEEDED
(
hres
))
BOOL
cancel
;
hres
=
hlink_frame_navigate
(
&
window
->
doc
->
basedoc
,
url
,
NULL
,
0
,
&
cancel
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
cancel
)
{
TRACE
(
"Navigation handled by hlink frame
\n
"
);
return
S_OK
;
TRACE
(
"hlink_frame_navigate failed: %08x
\n
"
,
hres
);
}
}
hres
=
create_doc_uri
(
window
,
url
,
&
uri
);
...
...
dlls/mshtml/nsio.c
View file @
34944c89
...
...
@@ -131,6 +131,7 @@ static BOOL before_async_open(nsChannel *channel, NSContainer *container)
{
HTMLDocumentObj
*
doc
=
container
->
doc
;
DWORD
hlnf
=
0
;
BOOL
cancel
;
HRESULT
hres
;
if
(
!
doc
)
{
...
...
@@ -148,8 +149,8 @@ static BOOL before_async_open(nsChannel *channel, NSContainer *container)
if
(
!
hlnf
&&
!
exec_shldocvw_67
(
doc
,
channel
->
uri
->
wine_url
))
return
FALSE
;
hres
=
hlink_frame_navigate
(
&
doc
->
basedoc
,
channel
->
uri
->
wine_url
,
channel
->
post_data_stream
,
hlnf
);
return
hres
!=
S_OK
;
hres
=
hlink_frame_navigate
(
&
doc
->
basedoc
,
channel
->
uri
->
wine_url
,
channel
->
post_data_stream
,
hlnf
,
&
cancel
);
return
FAILED
(
hres
)
||
cancel
;
}
HRESULT
load_nsuri
(
HTMLWindow
*
window
,
nsWineURI
*
uri
,
nsChannelBSC
*
channelbsc
,
DWORD
flags
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment