зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1171537 - Allow URIs to be the empty string in TabParent::RecvCreateWindow. r=billm.
--HG-- extra : commitid : 5GPWDBBmhIk extra : rebase_source : ee316947e347a4daabd34aab9041a3361ecdf4b9 extra : amend_source : f735f0285deaf140a95de95c749c7b0707578a83
This commit is contained in:
Родитель
54cd74e6ab
Коммит
84bfb07080
|
@ -689,12 +689,13 @@ TabParent::RecvCreateWindow(PBrowserParent* aNewTab,
|
|||
rv = NS_NewURI(getter_AddRefs(baseURI), aBaseURI);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
nsCOMPtr<nsIURI> finalURI;
|
||||
rv = NS_NewURI(getter_AddRefs(finalURI), NS_ConvertUTF16toUTF8(aURI).get(), baseURI);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
nsAutoCString finalURIString;
|
||||
finalURI->GetSpec(finalURIString);
|
||||
if (!aURI.IsEmpty()) {
|
||||
nsCOMPtr<nsIURI> finalURI;
|
||||
rv = NS_NewURI(getter_AddRefs(finalURI), NS_ConvertUTF16toUTF8(aURI).get(), baseURI);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
finalURI->GetSpec(finalURIString);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMWindow> window;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче