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
7b5125ac
Commit
7b5125ac
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::EqualsExceptRef.
parent
9751e3c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
7 deletions
+45
-7
nsio.c
dlls/mshtml/nsio.c
+45
-7
No files found.
dlls/mshtml/nsio.c
View file @
7b5125ac
...
...
@@ -113,6 +113,25 @@ static IUri *get_uri_nofrag(IUri *uri)
return
ret
;
}
static
BOOL
compare_ignoring_frag
(
IUri
*
uri1
,
IUri
*
uri2
)
{
IUri
*
uri_nofrag1
,
*
uri_nofrag2
;
BOOL
ret
=
FALSE
;
uri_nofrag1
=
get_uri_nofrag
(
uri1
);
if
(
!
uri_nofrag1
)
return
FALSE
;
uri_nofrag2
=
get_uri_nofrag
(
uri2
);
if
(
uri_nofrag2
)
{
IUri_IsEqual
(
uri_nofrag1
,
uri_nofrag2
,
&
ret
);
IUri_Release
(
uri_nofrag2
);
}
IUri_Release
(
uri_nofrag1
);
return
ret
;
}
static
nsresult
create_nsuri
(
IUri
*
,
nsIURI
*
,
HTMLWindow
*
,
NSContainer
*
,
nsWineURI
**
);
static
const
char
*
debugstr_nsacstr
(
const
nsACString
*
nsstr
)
...
...
@@ -2200,13 +2219,6 @@ static nsresult NSAPI nsURI_Equals(nsIURL *iface, nsIURI *other, PRBool *_retval
return
nsres
;
}
static
nsresult
NSAPI
nsURI_EqualsExceptRef
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
other
,
_retval
);
return
nsIURL_Equals
(
&
This
->
nsIURL_iface
,
other
,
_retval
);
}
static
nsresult
NSAPI
nsURI_SchemeIs
(
nsIURL
*
iface
,
const
char
*
scheme
,
PRBool
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
...
...
@@ -2334,6 +2346,32 @@ static nsresult NSAPI nsURI_GetOriginCharset(nsIURL *iface, nsACString *aOriginC
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURI_EqualsExceptRef
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
nsWineURI
*
other_obj
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
other
,
_retval
);
nsres
=
nsIURI_QueryInterface
(
other
,
&
IID_nsWineURI
,
(
void
**
)
&
other_obj
);
if
(
NS_FAILED
(
nsres
))
{
TRACE
(
"Could not get nsWineURI interface
\n
"
);
*
_retval
=
FALSE
;
return
NS_OK
;
}
if
(
ensure_uri
(
This
)
&&
ensure_uri
(
other_obj
))
{
*
_retval
=
compare_ignoring_frag
(
This
->
uri
,
other_obj
->
uri
);
nsres
=
NS_OK
;
}
else
{
nsres
=
NS_ERROR_UNEXPECTED
;
}
nsIURI_Release
(
&
other_obj
->
nsIURL_iface
);
return
nsres
;
}
static
nsresult
NSAPI
nsURI_CloneIgnoreRef
(
nsIURL
*
iface
,
nsIURI
**
_retval
)
{
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