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
b6dff3f7
Commit
b6dff3f7
authored
Sep 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return HTMLDocumentNode object in ScriptHost::QueryService for…
mshtml: Return HTMLDocumentNode object in ScriptHost::QueryService for SID_SInternetHostSecurityManager.
parent
bfb45783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
script.c
dlls/mshtml/script.c
+10
-0
script.c
dlls/mshtml/tests/script.c
+19
-0
No files found.
dlls/mshtml/script.c
View file @
b6dff3f7
...
...
@@ -557,6 +557,16 @@ static HRESULT WINAPI ASServiceProvider_QueryService(IServiceProvider *iface, RE
REFIID
riid
,
void
**
ppv
)
{
ScriptHost
*
This
=
SERVPROV_THIS
(
iface
);
if
(
IsEqualGUID
(
&
SID_SInternetHostSecurityManager
,
guidService
))
{
TRACE
(
"(%p)->(SID_SInternetHostSecurityManager)
\n
"
,
This
);
if
(
!
This
->
window
||
!
This
->
window
->
doc
)
return
E_NOINTERFACE
;
return
IInternetHostSecurityManager_QueryInterface
(
HOSTSECMGR
(
This
->
window
->
doc
),
riid
,
ppv
);
}
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
...
...
dlls/mshtml/tests/script.c
View file @
b6dff3f7
...
...
@@ -571,6 +571,23 @@ static const IObjectSafetyVtbl ObjectSafetyVtbl = {
static
IObjectSafety
ObjectSafety
=
{
&
ObjectSafetyVtbl
};
static
void
test_security
(
void
)
{
IInternetHostSecurityManager
*
sec_mgr
;
IServiceProvider
*
sp
;
HRESULT
hres
;
hres
=
IActiveScriptSite_QueryInterface
(
site
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
ok
(
hres
==
S_OK
,
"Could not get IServiceProvider iface: %08x
\n
"
,
hres
);
hres
=
IServiceProvider_QueryService
(
sp
,
&
SID_SInternetHostSecurityManager
,
&
IID_IInternetHostSecurityManager
,
(
void
**
)
&
sec_mgr
);
IServiceProvider_Release
(
sp
);
ok
(
hres
==
S_OK
,
"QueryService failed: %08x
\n
"
,
hres
);
IInternetHostSecurityManager_Release
(
sec_mgr
);
}
static
HRESULT
WINAPI
ActiveScriptProperty_QueryInterface
(
IActiveScriptProperty
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
...
...
@@ -960,6 +977,8 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac
CHECK_CALLED
(
GetScriptDispatch
);
CHECK_CALLED
(
script_testprop_i
);
test_security
();
return
S_OK
;
}
...
...
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