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
9e2a446f
Commit
9e2a446f
authored
Feb 11, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call FireBeforeNavigate2 for navigation in frames and iframes.
parent
f46ee92d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
navigate.c
dlls/mshtml/navigate.c
+12
-3
No files found.
dlls/mshtml/navigate.c
View file @
9e2a446f
...
...
@@ -2245,23 +2245,32 @@ 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
&&
window
==
window
->
doc_obj
->
basedoc
.
window
)
{
if
(
window
->
doc_obj
&&
window
->
doc_obj
->
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
;
if
(
!
(
flags
&
BINDING_REFRESH
))
{
BSTR
frame_name
=
NULL
;
BOOL
cancel
=
FALSE
;
if
(
window
!=
window
->
doc_obj
->
basedoc
.
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
,
NULL
,
post_data
,
post_data_len
?
post_data_len
+
1
:
0
,
headers
,
TRUE
,
&
cancel
);
frame_name
,
post_data
,
post_data_len
?
post_data_len
+
1
:
0
,
headers
,
TRUE
,
&
cancel
);
SysFreeString
(
frame_name
);
if
(
SUCCEEDED
(
hres
)
&&
cancel
)
{
TRACE
(
"Navigation canceled
\n
"
);
return
S_OK
;
}
}
return
super_navigate
(
window
,
uri
,
flags
,
headers
,
post_data
,
post_data_len
);
if
(
window
==
window
->
doc_obj
->
basedoc
.
window
)
return
super_navigate
(
window
,
uri
,
flags
,
headers
,
post_data
,
post_data_len
);
}
if
(
window
->
doc_obj
&&
window
==
window
->
doc_obj
->
basedoc
.
window
)
{
...
...
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