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
3b92a3f3
Commit
3b92a3f3
authored
Oct 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added support for URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY.
parent
e41d6eb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
sec_mgr.c
dlls/urlmon/sec_mgr.c
+1
-0
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+7
-0
No files found.
dlls/urlmon/sec_mgr.c
View file @
3b92a3f3
...
...
@@ -238,6 +238,7 @@ static HRESULT get_action_policy(DWORD zone, DWORD action, BYTE *policy, DWORD s
switch
(
action
)
{
case
URLACTION_SCRIPT_OVERRIDE_SAFETY
:
case
URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY
:
*
(
DWORD
*
)
policy
=
URLPOLICY_DISALLOW
;
return
S_OK
;
}
...
...
dlls/urlmon/tests/sec_mgr.c
View file @
3b92a3f3
...
...
@@ -297,6 +297,12 @@ static void test_special_url_action(IInternetSecurityManager *secmgr, IInternetZ
hres
=
IInternetSecurityManager_ProcessUrlAction
(
secmgr
,
url1
,
action
,
(
BYTE
*
)
&
policy
,
sizeof
(
WCHAR
),
NULL
,
0
,
0
,
0
);
ok
(
hres
==
S_FALSE
,
"ProcessUrlAction(%x) failed: %08x, expected S_FALSE
\n
"
,
action
,
hres
);
policy
=
0xdeadbeef
;
hres
=
IInternetSecurityManager_ProcessUrlAction
(
secmgr
,
url1
,
action
,
(
BYTE
*
)
&
policy
,
sizeof
(
DWORD
),
NULL
,
0
,
0
,
0
);
ok
(
hres
==
S_FALSE
,
"ProcessUrlAction(%x) failed: %08x, expected S_FALSE
\n
"
,
action
,
hres
);
ok
(
policy
==
URLPOLICY_DISALLOW
,
"policy = %x
\n
"
,
policy
);
}
static
void
test_activex
(
IInternetSecurityManager
*
secmgr
)
...
...
@@ -338,6 +344,7 @@ static void test_polices(void)
test_url_action
(
secmgr
,
zonemgr
,
0xdeadbeef
);
test_special_url_action
(
secmgr
,
zonemgr
,
URLACTION_SCRIPT_OVERRIDE_SAFETY
);
test_special_url_action
(
secmgr
,
zonemgr
,
URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY
);
test_activex
(
secmgr
);
...
...
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