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
12b85bef
Commit
12b85bef
authored
Mar 11, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLPrivateWindow_GetAddressBarUrl implementation.
parent
3660bf72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
htmlwindow.c
dlls/mshtml/htmlwindow.c
+7
-2
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+12
-2
No files found.
dlls/mshtml/htmlwindow.c
View file @
12b85bef
...
...
@@ -1777,8 +1777,13 @@ static HRESULT WINAPI HTMLPrivateWindow_FindWindowByName(IHTMLPrivateWindow *ifa
static
HRESULT
WINAPI
HTMLPrivateWindow_GetAddressBar
(
IHTMLPrivateWindow
*
iface
,
BSTR
*
url
)
{
HTMLWindow
*
This
=
impl_from_IHTMLPrivateWindow
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
url
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
url
);
if
(
!
url
)
return
E_INVALIDARG
;
*
url
=
SysAllocString
(
This
->
url
);
return
S_OK
;
}
static
const
IHTMLPrivateWindowVtbl
HTMLPrivateWindowVtbl
=
{
...
...
dlls/mshtml/tests/htmldoc.c
View file @
12b85bef
...
...
@@ -3533,7 +3533,6 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace)
str2
=
a2bstr
(
""
);
V_VT
(
&
vempty
)
=
VT_EMPTY
;
hres
=
IHTMLPrivateWindow_SuperNavigate
(
priv_window
,
str
,
str2
,
NULL
,
NULL
,
&
vempty
,
&
vempty
,
0
);
SysFreeString
(
str
);
SysFreeString
(
str2
);
ok
(
hres
==
S_OK
,
"SuperNavigate failed: %08x
\n
"
,
hres
);
...
...
@@ -3548,9 +3547,20 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace)
test_GetCurMoniker
(
doc_unk
,
doc_mon
,
NULL
);
doc_mon
=
NULL
;
}
IHTMLPrivateWindow_Release
(
priv_window
);
hres
=
IHTMLPrivateWindow_GetAddressBarUrl
(
priv_window
,
&
str2
);
ok
(
hres
==
S_OK
,
"GetAddressBarUrl failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str2
,
use_replace
?
"about:blank"
:
"http://www.winehq.org/"
),
"unexpected address bar url: %s
\n
"
,
wine_dbgstr_w
(
str2
));
SysFreeString
(
str2
);
test_download
(
DWL_VERBDONE
);
hres
=
IHTMLPrivateWindow_GetAddressBarUrl
(
priv_window
,
&
str2
);
ok
(
hres
==
S_OK
,
"GetAddressBarUrl failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
str2
,
str
),
"unexpected address bar url: %s
\n
"
,
wine_dbgstr_w
(
str2
));
SysFreeString
(
str2
);
SysFreeString
(
str
);
IHTMLPrivateWindow_Release
(
priv_window
);
}
static
void
test_open_window
(
IHTMLDocument2
*
doc
)
...
...
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