mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 07:37:29 +09:00
Bug 1329570 - Restore missing error check in mozilla::dom::Location::GetPathname
native in moebius
This commit is contained in:
parent
9e52126f1a
commit
75dcd43896
1 changed files with 4 additions and 3 deletions
|
|
@ -577,9 +577,10 @@ Location::GetPathname(nsAString& aPathname)
|
||||||
aPathname.Truncate();
|
aPathname.Truncate();
|
||||||
|
|
||||||
nsCOMPtr<nsIURI> uri;
|
nsCOMPtr<nsIURI> uri;
|
||||||
nsresult result = NS_OK;
|
nsresult result = GetURI(getter_AddRefs(uri));
|
||||||
|
if (NS_FAILED(result) || !uri) {
|
||||||
result = GetURI(getter_AddRefs(uri));
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIURIWithQuery> url(do_QueryInterface(uri));
|
nsCOMPtr<nsIURIWithQuery> url(do_QueryInterface(uri));
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue