Fix for bug #162128. Find a usable base uri for urls loaded through javascript.

r=jst sr=darin.
This commit is contained in:
radha@netscape.com
2003-03-05 22:23:47 +00:00
parent acaca3f296
commit ae7a4f6507
3 changed files with 69 additions and 5 deletions

View File

@@ -6119,7 +6119,8 @@ nsDocShell::AddToSessionHistory(nsIURI * aURI,
}
else {
// This is a subframe.
if (mLoadType != LOAD_NORMAL_REPLACE)
if ((mLoadType != LOAD_NORMAL_REPLACE) ||
(mLoadType == LOAD_NORMAL_REPLACE && !mOSHE))
rv = AddChildSHEntry(nsnull, entry, mChildOffset);
}