mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
Bug 1329570 - Restore missing error check in mozilla::dom::Location::GetPathname
native in moebius
This commit is contained in:
@@ -577,9 +577,10 @@ Location::GetPathname(nsAString& aPathname)
|
||||
aPathname.Truncate();
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
nsresult result = NS_OK;
|
||||
|
||||
result = GetURI(getter_AddRefs(uri));
|
||||
nsresult result = GetURI(getter_AddRefs(uri));
|
||||
if (NS_FAILED(result) || !uri) {
|
||||
return result;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURIWithQuery> url(do_QueryInterface(uri));
|
||||
if (url) {
|
||||
|
||||
Reference in New Issue
Block a user