backing out my bug fix because it appears to have broken the page cycler.
thanks to sspitzer for helping me figure this out.
This commit is contained in:
@@ -1147,6 +1147,10 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
|
||||
}
|
||||
|
||||
rv = NS_OpenURI(getter_AddRefs(pChannel), aUri, pNetService, loadGroup, requestor, aType);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// XXX wrong, but needed for now:
|
||||
rv = pChannel->SetOriginalURI(referrer ? referrer.get() : aUri);
|
||||
}
|
||||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_DOM_RETVAL_UNDEFINED) // if causing the channel changed the
|
||||
return NS_OK; // dom and there is nothing else to do
|
||||
@@ -2324,7 +2328,7 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
urlString = spec;
|
||||
if (nsnull != mContainer) {
|
||||
rv = mContainer->EndLoadURL(this, urlString.GetUnicode(), aStatus);
|
||||
rv = mContainer->EndLoadURL(this, urlString.GetUnicode(), 0);
|
||||
}
|
||||
nsCRT::free(spec);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user