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
1190c8cb
Commit
1190c8cb
authored
Nov 10, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IUri in use_gecko_script.
parent
d7f7f33e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
persist.c
dlls/mshtml/persist.c
+9
-5
No files found.
dlls/mshtml/persist.c
View file @
1190c8cb
...
...
@@ -32,6 +32,9 @@
#include "shlguid.h"
#include "idispids.h"
#define NO_SHLWAPI_REG
#include "shlwapi.h"
#include "wine/debug.h"
#include "mshtml_private.h"
...
...
@@ -50,11 +53,9 @@ typedef struct {
static
BOOL
use_gecko_script
(
HTMLWindow
*
window
)
{
DWORD
zone
;
DWORD
zone
,
scheme
;
HRESULT
hres
;
static
const
WCHAR
aboutW
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
};
hres
=
IInternetSecurityManager_MapUrlToZone
(
window
->
secmgr
,
window
->
url
,
&
zone
,
0
);
if
(
FAILED
(
hres
))
{
WARN
(
"Could not map %s to zone: %08x
\n
"
,
debugstr_w
(
window
->
url
),
hres
);
...
...
@@ -62,8 +63,11 @@ static BOOL use_gecko_script(HTMLWindow *window)
}
TRACE
(
"zone %d
\n
"
,
zone
);
return
zone
!=
URLZONE_LOCAL_MACHINE
&&
zone
!=
URLZONE_TRUSTED
&&
strncmpiW
(
aboutW
,
window
->
url
,
sizeof
(
aboutW
)
/
sizeof
(
WCHAR
));
if
(
zone
==
URLZONE_LOCAL_MACHINE
||
zone
==
URLZONE_TRUSTED
||
!
window
->
uri
)
return
FALSE
;
hres
=
IUri_GetScheme
(
window
->
uri
,
&
scheme
);
return
FAILED
(
hres
)
||
scheme
!=
URL_SCHEME_ABOUT
;
}
void
set_current_mon
(
HTMLWindow
*
This
,
IMoniker
*
mon
)
...
...
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