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
e0a33d04
Commit
e0a33d04
authored
Nov 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't pass hash part of URI to EvaluateNewWindow.
parent
986f4cb9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
5 deletions
+25
-5
binding.h
dlls/mshtml/binding.h
+2
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+9
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsio.c
dlls/mshtml/nsio.c
+1
-1
persist.c
dlls/mshtml/persist.c
+12
-0
No files found.
dlls/mshtml/binding.h
View file @
e0a33d04
...
...
@@ -116,4 +116,6 @@ void channelbsc_set_channel(nsChannelBSC*,nsChannel*,nsIStreamListener*,nsISuppo
IUri
*
nsuri_get_uri
(
nsWineURI
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_relative_uri
(
HTMLOuterWindow
*
,
const
WCHAR
*
,
IUri
**
)
DECLSPEC_HIDDEN
;
IUri
*
get_uri_nofrag
(
IUri
*
)
DECLSPEC_HIDDEN
;
HRESULT
bind_mon_to_wstr
(
HTMLInnerWindow
*
,
IMoniker
*
,
WCHAR
**
)
DECLSPEC_HIDDEN
;
dlls/mshtml/htmlwindow.c
View file @
e0a33d04
...
...
@@ -857,13 +857,14 @@ static HRESULT WINAPI HTMLWindow2_open(IHTMLWindow2 *iface, BSTR url, BSTR name,
HTMLWindow
*
This
=
impl_from_IHTMLWindow2
(
iface
);
HTMLOuterWindow
*
window
=
This
->
outer_window
;
INewWindowManager
*
new_window_mgr
;
BSTR
uri_str
;
IUri
*
uri
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %s %s %x %p)
\n
"
,
This
,
debugstr_w
(
url
),
debugstr_w
(
name
),
debugstr_w
(
features
),
replace
,
pomWindowResult
);
if
(
!
window
->
doc_obj
)
if
(
!
window
->
doc_obj
||
!
window
->
uri_nofrag
)
return
E_UNEXPECTED
;
if
(
name
&&
*
name
==
'_'
)
{
...
...
@@ -878,10 +879,14 @@ static HRESULT WINAPI HTMLWindow2_open(IHTMLWindow2 *iface, BSTR url, BSTR name,
return
E_NOTIMPL
;
}
hres
=
INewWindowManager_EvaluateNewWindow
(
new_window_mgr
,
url
,
name
,
window
->
url
,
features
,
!!
replace
,
window
->
doc_obj
->
has_popup
?
0
:
NWMF_FIRST
,
0
);
hres
=
IUri_GetDisplayUri
(
window
->
uri_nofrag
,
&
uri_str
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
INewWindowManager_EvaluateNewWindow
(
new_window_mgr
,
url
,
name
,
uri_str
,
features
,
!!
replace
,
window
->
doc_obj
->
has_popup
?
0
:
NWMF_FIRST
,
0
);
window
->
doc_obj
->
has_popup
=
TRUE
;
SysFreeString
(
uri_str
);
}
INewWindowManager_Release
(
new_window_mgr
);
window
->
doc_obj
->
has_popup
=
TRUE
;
if
(
FAILED
(
hres
))
{
*
pomWindowResult
=
NULL
;
return
S_OK
;
...
...
dlls/mshtml/mshtml_private.h
View file @
e0a33d04
...
...
@@ -372,6 +372,7 @@ struct HTMLOuterWindow {
HTMLInnerWindow
*
pending_window
;
IMoniker
*
mon
;
IUri
*
uri
;
IUri
*
uri_nofrag
;
BSTR
url
;
SCRIPTMODE
scriptmode
;
...
...
dlls/mshtml/nsio.c
View file @
e0a33d04
...
...
@@ -94,7 +94,7 @@ IUri *nsuri_get_uri(nsWineURI *nsuri)
return
nsuri
->
uri
;
}
static
IUri
*
get_uri_nofrag
(
IUri
*
uri
)
IUri
*
get_uri_nofrag
(
IUri
*
uri
)
{
IUriBuilder
*
uri_builder
;
IUri
*
ret
;
...
...
dlls/mshtml/persist.c
View file @
e0a33d04
...
...
@@ -106,6 +106,11 @@ void set_current_uri(HTMLOuterWindow *window, IUri *uri)
window
->
uri
=
NULL
;
}
if
(
window
->
uri_nofrag
)
{
IUri_Release
(
window
->
uri_nofrag
);
window
->
uri_nofrag
=
NULL
;
}
SysFreeString
(
window
->
url
);
window
->
url
=
NULL
;
...
...
@@ -115,6 +120,13 @@ void set_current_uri(HTMLOuterWindow *window, IUri *uri)
IUri_AddRef
(
uri
);
window
->
uri
=
uri
;
window
->
uri_nofrag
=
get_uri_nofrag
(
uri
);
if
(
!
window
->
uri_nofrag
)
{
FIXME
(
"get_uri_nofrag failed
\n
"
);
IUri_AddRef
(
uri
);
window
->
uri_nofrag
=
uri
;
}
IUri_GetDisplayUri
(
uri
,
&
window
->
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