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
cc533ecc
Commit
cc533ecc
authored
Jul 20, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store scheme in nsWineURI instead of nsChannel.
parent
4870355a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
binding.h
dlls/mshtml/binding.h
+0
-1
nsio.c
dlls/mshtml/nsio.c
+7
-6
No files found.
dlls/mshtml/binding.h
View file @
cc533ecc
...
...
@@ -47,7 +47,6 @@ typedef struct {
REQUEST_METHOD
request_method
;
struct
list
response_headers
;
struct
list
request_headers
;
UINT
url_scheme
;
}
nsChannel
;
typedef
struct
BSCallbackVtbl
BSCallbackVtbl
;
...
...
dlls/mshtml/nsio.c
View file @
cc533ecc
...
...
@@ -65,6 +65,7 @@ struct nsWineURI {
IUriBuilder
*
uri_builder
;
BOOL
is_doc_uri
;
BOOL
is_mutable
;
DWORD
scheme
;
};
static
BOOL
ensure_uri
(
nsWineURI
*
This
)
...
...
@@ -321,7 +322,7 @@ static void set_uri_window(nsWineURI *This, HTMLOuterWindow *window)
static
inline
BOOL
is_http_channel
(
nsChannel
*
This
)
{
return
This
->
ur
l_scheme
==
URL_SCHEME_HTTP
||
This
->
url_
scheme
==
URL_SCHEME_HTTPS
;
return
This
->
ur
i
->
scheme
==
URL_SCHEME_HTTP
||
This
->
uri
->
scheme
==
URL_SCHEME_HTTPS
;
}
static
http_header_t
*
find_http_header
(
struct
list
*
headers
,
const
WCHAR
*
name
,
int
len
)
...
...
@@ -2814,6 +2815,7 @@ static const nsIStandardURLVtbl nsStandardURLVtbl = {
static
nsresult
create_nsuri
(
IUri
*
iuri
,
HTMLOuterWindow
*
window
,
NSContainer
*
container
,
nsWineURI
**
_retval
)
{
nsWineURI
*
ret
=
heap_alloc_zero
(
sizeof
(
nsWineURI
));
HRESULT
hres
;
ret
->
nsIURL_iface
.
lpVtbl
=
&
nsURLVtbl
;
ret
->
nsIStandardURL_iface
.
lpVtbl
=
&
nsStandardURLVtbl
;
...
...
@@ -2826,6 +2828,10 @@ static nsresult create_nsuri(IUri *iuri, HTMLOuterWindow *window, NSContainer *c
IUri_AddRef
(
iuri
);
ret
->
uri
=
iuri
;
hres
=
IUri_GetScheme
(
iuri
,
&
ret
->
scheme
);
if
(
FAILED
(
hres
))
ret
->
scheme
=
URL_SCHEME_UNKNOWN
;
TRACE
(
"retval=%p
\n
"
,
ret
);
*
_retval
=
ret
;
return
NS_OK
;
...
...
@@ -2856,7 +2862,6 @@ HRESULT create_doc_uri(HTMLOuterWindow *window, WCHAR *url, nsWineURI **ret)
static
nsresult
create_nschannel
(
nsWineURI
*
uri
,
nsChannel
**
ret
)
{
nsChannel
*
channel
;
HRESULT
hres
;
if
(
!
ensure_uri
(
uri
))
return
NS_ERROR_UNEXPECTED
;
...
...
@@ -2876,10 +2881,6 @@ static nsresult create_nschannel(nsWineURI *uri, nsChannel **ret)
nsIURL_AddRef
(
&
uri
->
nsIURL_iface
);
channel
->
uri
=
uri
;
hres
=
IUri_GetScheme
(
uri
->
uri
,
&
channel
->
url_scheme
);
if
(
FAILED
(
hres
))
channel
->
url_scheme
=
URL_SCHEME_UNKNOWN
;
*
ret
=
channel
;
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