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
2a6cb251
Commit
2a6cb251
authored
Mar 14, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Access document object via browser object in navigate_uri.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da055b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
navigate.c
dlls/mshtml/navigate.c
+10
-7
No files found.
dlls/mshtml/navigate.c
View file @
2a6cb251
...
...
@@ -2404,7 +2404,10 @@ static HRESULT navigate_uri(HTMLOuterWindow *window, IUri *uri, const WCHAR *dis
TRACE
(
"%s
\n
"
,
debugstr_w
(
display_uri
));
if
(
window
->
doc_obj
&&
window
->
doc_obj
->
webbrowser
)
{
if
(
!
window
->
browser
)
return
E_UNEXPECTED
;
if
(
window
->
browser
->
doc
->
webbrowser
)
{
DWORD
post_data_len
=
request_data
?
request_data
->
post_data_len
:
0
;
void
*
post_data
=
post_data_len
?
request_data
->
post_data
:
NULL
;
const
WCHAR
*
headers
=
request_data
?
request_data
->
headers
:
NULL
;
...
...
@@ -2413,13 +2416,13 @@ static HRESULT navigate_uri(HTMLOuterWindow *window, IUri *uri, const WCHAR *dis
BSTR
frame_name
=
NULL
;
BOOL
cancel
=
FALSE
;
if
(
window
!=
window
->
doc_obj
->
basedoc
.
window
)
{
if
(
!
is_main_content_window
(
window
)
)
{
hres
=
IHTMLWindow2_get_name
(
&
window
->
base
.
IHTMLWindow2_iface
,
&
frame_name
);
if
(
FAILED
(
hres
))
return
hres
;
}
hres
=
IDocObjectService_FireBeforeNavigate2
(
window
->
doc_obj
->
doc_object_service
,
NULL
,
display_uri
,
0x40
,
hres
=
IDocObjectService_FireBeforeNavigate2
(
window
->
browser
->
doc
->
doc_object_service
,
NULL
,
display_uri
,
0x40
,
frame_name
,
post_data
,
post_data_len
?
post_data_len
+
1
:
0
,
headers
,
TRUE
,
&
cancel
);
SysFreeString
(
frame_name
);
if
(
SUCCEEDED
(
hres
)
&&
cancel
)
{
...
...
@@ -2428,11 +2431,11 @@ static HRESULT navigate_uri(HTMLOuterWindow *window, IUri *uri, const WCHAR *dis
}
}
if
(
window
==
window
->
doc_obj
->
basedoc
.
window
)
if
(
is_main_content_window
(
window
)
)
return
super_navigate
(
window
,
uri
,
flags
,
headers
,
post_data
,
post_data_len
);
}
if
(
window
->
doc_obj
&&
window
==
window
->
doc_obj
->
basedoc
.
window
)
{
if
(
is_main_content_window
(
window
)
)
{
BOOL
cancel
;
hres
=
hlink_frame_navigate
(
&
window
->
base
.
inner_window
->
doc
->
basedoc
,
display_uri
,
NULL
,
0
,
&
cancel
);
...
...
@@ -2478,10 +2481,10 @@ static HRESULT translate_uri(HTMLOuterWindow *window, IUri *orig_uri, BSTR *ret_
if
(
FAILED
(
hres
))
return
hres
;
if
(
window
->
doc_obj
&&
window
->
doc_obj
->
hostui
)
{
if
(
window
->
browser
->
doc
->
hostui
)
{
OLECHAR
*
translated_url
=
NULL
;
hres
=
IDocHostUIHandler_TranslateUrl
(
window
->
doc_obj
->
hostui
,
0
,
display_uri
,
hres
=
IDocHostUIHandler_TranslateUrl
(
window
->
browser
->
doc
->
hostui
,
0
,
display_uri
,
&
translated_url
);
if
(
hres
==
S_OK
&&
translated_url
)
{
TRACE
(
"%08x %s -> %s
\n
"
,
hres
,
debugstr_w
(
display_uri
),
debugstr_w
(
translated_url
));
...
...
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