зеркало из https://github.com/mozilla/pjs.git
Prevent www. & .com fixup for link clicks and in frames & iframes. b=34943 r=radha@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org a=jaimejr@netscape.com (adt)
This commit is contained in:
Родитель
5c710f229c
Коммит
577ef1fd66
|
@ -801,6 +801,21 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
|
|||
doCreateAlternate = PR_FALSE;
|
||||
}
|
||||
}
|
||||
// Skip fixup for anything except a normal document load operation
|
||||
if (mLoadType != LOAD_NORMAL)
|
||||
{
|
||||
doCreateAlternate = PR_FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Skip fixup for frames & iframes
|
||||
nsCOMPtr<nsIDocShellTreeItem> targetParentTreeItem;
|
||||
rv = GetSameTypeParent(getter_AddRefs(targetParentTreeItem));
|
||||
if (NS_SUCCEEDED(rv) && targetParentTreeItem)
|
||||
{
|
||||
doCreateAlternate = PR_FALSE;
|
||||
}
|
||||
}
|
||||
if (doCreateAlternate)
|
||||
{
|
||||
newURI = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче