зеркало из https://github.com/mozilla/pjs.git
Bug 179269 - New page opens which should display tabular data. Error message in new page instead of data.
Fix contributed by Harshal <keeda@hotpop.com> r=caillon sr=jst
This commit is contained in:
Родитель
f8ddc84d33
Коммит
379703ef0a
|
@ -43,6 +43,8 @@
|
|||
#include "nsIDocShell.h"
|
||||
#include "nsIDocShellLoadInfo.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsCDefaultURIFixup.h"
|
||||
#include "nsIURIFixup.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIServiceManager.h"
|
||||
|
@ -211,7 +213,14 @@ LocationImpl::GetURI(nsIURI** aURI)
|
|||
return rv;
|
||||
}
|
||||
|
||||
return webNav->GetCurrentURI(aURI);
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
rv = webNav->GetCurrentURI(getter_AddRefs(uri));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIURIFixup> urifixup(do_GetService(NS_URIFIXUP_CONTRACTID, &rv));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return urifixup->CreateExposableURI(uri, aURI);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче