diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 77b2656d252..a70cf6f5df6 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1755,7 +1755,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, /* Add yourself to the Session History */ if (shist) { PRInt32 ret=0; - ret = shist->add(this); + ret = shist->add(this, aType); } } @@ -1788,7 +1788,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, /* The session History may have changed the URL. So pass on the * right one for loading */ - PRUnichar * urlString=nsnull; + const PRUnichar * urlString=nsnull; GetURL(&urlString); nsAutoString newURL(urlString); printf("Loading url %s in WEbshell %x\n", mURL.ToNewCString(), this); diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 77b2656d252..a70cf6f5df6 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1755,7 +1755,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, /* Add yourself to the Session History */ if (shist) { PRInt32 ret=0; - ret = shist->add(this); + ret = shist->add(this, aType); } } @@ -1788,7 +1788,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, /* The session History may have changed the URL. So pass on the * right one for loading */ - PRUnichar * urlString=nsnull; + const PRUnichar * urlString=nsnull; GetURL(&urlString); nsAutoString newURL(urlString); printf("Loading url %s in WEbshell %x\n", mURL.ToNewCString(), this);