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
e62612b2
Commit
e62612b2
authored
Jan 26, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added URI_ flags declaration and improved debug traces.
parent
40d9a2b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 deletions
+54
-3
nsiface.idl
dlls/mshtml/nsiface.idl
+21
-0
nsio.c
dlls/mshtml/nsio.c
+33
-3
No files found.
dlls/mshtml/nsiface.idl
View file @
e62612b2
...
@@ -2731,6 +2731,27 @@ interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
...
@@ -2731,6 +2731,27 @@ interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
]
]
interface
nsIProtocolHandler
:
nsISupports
interface
nsIProtocolHandler
:
nsISupports
{
{
const
unsigned
long
URI_STD
=
0
;
const
unsigned
long
URI_NORELATIVE
=
(
1
<<
0
)
;
const
unsigned
long
URI_NOAUTH
=
(
1
<<
1
)
;
const
unsigned
long
ALLOWS_PROXY
=
(
1
<<
2
)
;
const
unsigned
long
ALLOWS_PROXY_HTTP
=
(
1
<<
3
)
;
const
unsigned
long
URI_INHERITS_SECURITY_CONTEXT
=
(
1
<<
4
)
;
const
unsigned
long
URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT
=
(
1
<<
5
)
;
const
unsigned
long
URI_LOADABLE_BY_ANYONE
=
(
1
<<
6
)
;
const
unsigned
long
URI_DANGEROUS_TO_LOAD
=
(
1
<<
7
)
;
const
unsigned
long
URI_IS_UI_RESOURCE
=
(
1
<<
8
)
;
const
unsigned
long
URI_IS_LOCAL_FILE
=
(
1
<<
9
)
;
const
unsigned
long
URI_LOADABLE_BY_SUBSUMERS
=
(
1
<<
10
)
;
const
unsigned
long
URI_DOES_NOT_RETURN_DATA
=
(
1
<<
11
)
;
const
unsigned
long
URI_IS_LOCAL_RESOURCE
=
(
1
<<
12
)
;
const
unsigned
long
URI_OPENING_EXECUTES_SCRIPT
=
(
1
<<
13
)
;
const
unsigned
long
URI_NON_PERSISTABLE
=
(
1
<<
14
)
;
const
unsigned
long
URI_FORBIDS_COOKIE_ACCESS
=
(
1
<<
15
)
;
const
unsigned
long
URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM
=
(
1
<<
16
)
;
const
unsigned
long
URI_SYNC_LOAD_IS_OK
=
(
1
<<
17
)
;
const
unsigned
long
URI_SAFE_TO_LOAD_IN_SECURE_CONTEXT
=
(
1
<<
18
)
;
nsresult
GetScheme
(
nsACString
*
aScheme
)
;
nsresult
GetScheme
(
nsACString
*
aScheme
)
;
nsresult
GetDefaultPort
(
int32_t
*
aDefaultPort
)
;
nsresult
GetDefaultPort
(
int32_t
*
aDefaultPort
)
;
nsresult
GetProtocolFlags
(
uint32_t
*
aProtocolFlags
)
;
nsresult
GetProtocolFlags
(
uint32_t
*
aProtocolFlags
)
;
...
...
dlls/mshtml/nsio.c
View file @
e62612b2
...
@@ -3622,18 +3622,48 @@ static nsresult NSAPI nsNetUtil_ParseContentType(nsINetUtil *iface, const nsACSt
...
@@ -3622,18 +3622,48 @@ static nsresult NSAPI nsNetUtil_ParseContentType(nsINetUtil *iface, const nsACSt
return
nsINetUtil_ParseContentType
(
net_util
,
aTypeHeader
,
aCharset
,
aHadCharset
,
aContentType
);
return
nsINetUtil_ParseContentType
(
net_util
,
aTypeHeader
,
aCharset
,
aHadCharset
,
aContentType
);
}
}
static
const
char
*
debugstr_protocol_flags
(
UINT32
flags
)
{
switch
(
flags
)
{
#define X(f) case f: return #f
X
(
URI_STD
);
X
(
URI_NORELATIVE
);
X
(
URI_NOAUTH
);
X
(
ALLOWS_PROXY
);
X
(
ALLOWS_PROXY_HTTP
);
X
(
URI_INHERITS_SECURITY_CONTEXT
);
X
(
URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT
);
X
(
URI_LOADABLE_BY_ANYONE
);
X
(
URI_DANGEROUS_TO_LOAD
);
X
(
URI_IS_UI_RESOURCE
);
X
(
URI_IS_LOCAL_FILE
);
X
(
URI_LOADABLE_BY_SUBSUMERS
);
X
(
URI_DOES_NOT_RETURN_DATA
);
X
(
URI_IS_LOCAL_RESOURCE
);
X
(
URI_OPENING_EXECUTES_SCRIPT
);
X
(
URI_NON_PERSISTABLE
);
X
(
URI_FORBIDS_COOKIE_ACCESS
);
X
(
URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM
);
X
(
URI_SYNC_LOAD_IS_OK
);
X
(
URI_SAFE_TO_LOAD_IN_SECURE_CONTEXT
);
#undef X
default:
return
wine_dbg_sprintf
(
"%08x"
,
flags
);
}
}
static
nsresult
NSAPI
nsNetUtil_ProtocolHasFlags
(
nsINetUtil
*
iface
,
nsIURI
*
aURI
,
UINT32
aFlags
,
cpp_bool
*
_retval
)
static
nsresult
NSAPI
nsNetUtil_ProtocolHasFlags
(
nsINetUtil
*
iface
,
nsIURI
*
aURI
,
UINT32
aFlags
,
cpp_bool
*
_retval
)
{
{
TRACE
(
"(
)
\n
"
);
TRACE
(
"(
%p %s %p)
\n
"
,
aURI
,
debugstr_protocol_flags
(
aFlags
),
_retval
);
return
nsINetUtil_ProtocolHasFlags
(
net_util
,
aURI
,
aFlags
,
_retval
);
return
nsINetUtil_ProtocolHasFlags
(
net_util
,
aURI
,
aFlags
,
_retval
);
}
}
static
nsresult
NSAPI
nsNetUtil_URIChainHasFlags
(
nsINetUtil
*
iface
,
nsIURI
*
aURI
,
UINT32
aFlags
,
cpp_bool
*
_retval
)
static
nsresult
NSAPI
nsNetUtil_URIChainHasFlags
(
nsINetUtil
*
iface
,
nsIURI
*
aURI
,
UINT32
aFlags
,
cpp_bool
*
_retval
)
{
{
TRACE
(
"(%p %
08x %p)
\n
"
,
aURI
,
aFlags
,
_retval
);
TRACE
(
"(%p %
s %p)
\n
"
,
aURI
,
debugstr_protocol_flags
(
aFlags
)
,
_retval
);
if
(
aFlags
==
(
1
<<
11
)
)
{
if
(
aFlags
==
URI_DOES_NOT_RETURN_DATA
)
{
*
_retval
=
FALSE
;
*
_retval
=
FALSE
;
return
NS_OK
;
return
NS_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