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
9751e3c6
Commit
9751e3c6
authored
Nov 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly implement nsIURI::CloneIgnoreRef.
parent
bc701d59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
7 deletions
+54
-7
nsio.c
dlls/mshtml/nsio.c
+54
-7
No files found.
dlls/mshtml/nsio.c
View file @
9751e3c6
...
...
@@ -86,6 +86,33 @@ static BOOL ensure_uri(nsWineURI *This)
return
TRUE
;
}
static
IUri
*
get_uri_nofrag
(
IUri
*
uri
)
{
IUriBuilder
*
uri_builder
;
IUri
*
ret
;
BOOL
b
;
HRESULT
hres
;
hres
=
IUri_HasProperty
(
uri
,
Uri_PROPERTY_FRAGMENT
,
&
b
);
if
(
SUCCEEDED
(
hres
)
&&
!
b
)
{
IUri_AddRef
(
uri
);
return
uri
;
}
hres
=
CreateIUriBuilder
(
uri
,
0
,
0
,
&
uri_builder
);
if
(
FAILED
(
hres
))
return
NULL
;
hres
=
IUriBuilder_RemoveProperties
(
uri_builder
,
Uri_HAS_FRAGMENT
);
if
(
SUCCEEDED
(
hres
))
hres
=
IUriBuilder_CreateUriSimple
(
uri_builder
,
0
,
0
,
&
ret
);
IUriBuilder_Release
(
uri_builder
);
if
(
FAILED
(
hres
))
return
NULL
;
return
ret
;
}
static
nsresult
create_nsuri
(
IUri
*
,
nsIURI
*
,
HTMLWindow
*
,
NSContainer
*
,
nsWineURI
**
);
static
const
char
*
debugstr_nsacstr
(
const
nsACString
*
nsstr
)
...
...
@@ -2232,13 +2259,6 @@ static nsresult NSAPI nsURI_Clone(nsIURL *iface, nsIURI **_retval)
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_CloneIgnoreRef
(
nsIURL
*
iface
,
nsIURI
**
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
_retval
);
return
nsIURL_Clone
(
&
This
->
nsIURL_iface
,
_retval
);
}
static
nsresult
NSAPI
nsURI_Resolve
(
nsIURL
*
iface
,
const
nsACString
*
aRelativePath
,
nsACString
*
_retval
)
{
...
...
@@ -2314,6 +2334,33 @@ static nsresult NSAPI nsURI_GetOriginCharset(nsIURL *iface, nsACString *aOriginC
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURI_CloneIgnoreRef
(
nsIURL
*
iface
,
nsIURI
**
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
nsWineURI
*
wine_uri
;
IUri
*
uri
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
_retval
);
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
uri
=
get_uri_nofrag
(
This
->
uri
);
if
(
!
uri
)
return
NS_ERROR_FAILURE
;
nsres
=
create_nsuri
(
uri
,
NULL
,
This
->
window_ref
?
This
->
window_ref
->
window
:
NULL
,
This
->
container
,
&
wine_uri
);
IUri_Release
(
uri
);
if
(
NS_FAILED
(
nsres
))
{
WARN
(
"create_nsuri failed: %08x
\n
"
,
nsres
);
return
nsres
;
}
*
_retval
=
(
nsIURI
*
)
&
wine_uri
->
nsIURL_iface
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetSpecIgnoringRef
(
nsIURL
*
iface
,
nsACString
*
aSpecIgnoringRef
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
...
...
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