mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Fix for loading resource: urls with -f option. Bug#18423. Now passing original url (rather than redirect) to Observe callback.
This commit is contained in:
parent
c71b5e670b
commit
3120586293
@ -1044,6 +1044,11 @@ public:
|
||||
rv = mAppCore->LoadUrl(url.GetUnicode());
|
||||
}
|
||||
}
|
||||
else {
|
||||
char* dataStr = data.ToNewCString();
|
||||
printf("########## PageCycler possible failure for: %s\n", dataStr);
|
||||
nsCRT::free(dataStr);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -1455,7 +1460,7 @@ nsBrowserAppCore::OnEndDocumentLoad(nsIDocumentLoader* aLoader, nsIChannel* chan
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIURI> aUrl;
|
||||
rv = channel->GetURI(getter_AddRefs(aUrl));
|
||||
rv = channel->GetOriginalURI(getter_AddRefs(aUrl));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsXPIDLCString url;
|
||||
|
Loading…
x
Reference in New Issue
Block a user