Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
172f82e1
Commit
172f82e1
authored
Mar 13, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Use IHTMLPrivateWindow for navigation in navigate_url if available.
parent
94c5df06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
navigate.c
dlls/shdocvw/navigate.c
+14
-6
No files found.
dlls/shdocvw/navigate.c
View file @
172f82e1
...
...
@@ -726,10 +726,10 @@ static void navigate_bsc_proc(DocHost *This, task_header_t *t)
HRESULT
navigate_url
(
DocHost
*
This
,
LPCWSTR
url
,
const
VARIANT
*
Flags
,
const
VARIANT
*
TargetFrameName
,
VARIANT
*
PostData
,
VARIANT
*
Headers
)
{
task_navigate_bsc_t
*
task
;
PBYTE
post_data
=
NULL
;
ULONG
post_data_len
=
0
;
LPWSTR
headers
=
NULL
;
HRESULT
hres
=
S_OK
;
TRACE
(
"navigating to %s
\n
"
,
debugstr_w
(
url
));
...
...
@@ -756,15 +756,23 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
TRACE
(
"Headers: %s
\n
"
,
debugstr_w
(
headers
));
}
task
=
heap_alloc
(
sizeof
(
*
task
));
task
->
bsc
=
create_callback
(
This
,
url
,
post_data
,
post_data_len
,
headers
);
set_doc_state
(
This
,
READYSTATE_LOADING
);
This
->
ready_state
=
READYSTATE_LOADING
;
if
(
This
->
doc_navigate
)
{
hres
=
async_doc_navigate
(
This
,
url
,
headers
,
post_data
,
post_data_len
,
TRUE
);
}
else
{
task_navigate_bsc_t
*
task
;
task
=
heap_alloc
(
sizeof
(
*
task
));
task
->
bsc
=
create_callback
(
This
,
url
,
post_data
,
post_data_len
,
headers
);
push_dochost_task
(
This
,
&
task
->
header
,
navigate_bsc_proc
,
This
->
url
==
NULL
);
}
if
(
post_data
)
SafeArrayUnaccessData
(
V_ARRAY
(
PostData
));
push_dochost_task
(
This
,
&
task
->
header
,
navigate_bsc_proc
,
This
->
url
==
NULL
);
return
S_OK
;
return
hres
;
}
static
HRESULT
navigate_hlink
(
DocHost
*
This
,
IMoniker
*
mon
,
IBindCtx
*
bindctx
,
...
...
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