bugzilla 52182. r=a=mscott.

Modify the logic to launch external browser (only for target=_content
and target=_blank links). Also add something to DocShellLoadInfo
so that a user of nsDocShell::LoadURI can specify the target desired.


git-svn-id: svn://10.0.0.236/trunk@79840 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vishy%netscape.com
2000-09-22 05:04:58 +00:00
parent 9bb8b1d598
commit 144cb573f0
4 changed files with 28 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
*
* Contributor(s):
* Travis Bogard <travis@netscape.com>
* Viswanath Ramachandran <vishy@netscape.com>
*/
// Local Includes
@@ -32,6 +33,7 @@ nsDocShellLoadInfo::nsDocShellLoadInfo()
NS_INIT_REFCNT();
mLoadType = nsIDocShellLoadInfo::loadNormal;
mInheritOwner = PR_FALSE;
mTarget.Assign("");
mStopActiveDocument = PR_FALSE;
}
@@ -135,13 +137,28 @@ NS_IMETHODIMP nsDocShellLoadInfo::GetSHEntry(nsISHEntry** aSHEntry)
NS_IF_ADDREF(*aSHEntry);
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::SetSHEntry(nsISHEntry* aSHEntry)
{
mSHEntry = aSHEntry;
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::GetTarget(char** aTarget)
{
NS_ENSURE_ARG_POINTER(aTarget);
*aTarget = mTarget.ToNewCString();
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::SetTarget(const char* aTarget)
{
mTarget.Assign(aTarget);
return NS_OK;
}
//*****************************************************************************
// nsDocShellLoadInfo: Helpers
//*****************************************************************************