Fixing exploits involving changing the location of a window and getting the wrong principal. Bug 48723, r=vidur

git-svn-id: svn://10.0.0.236/trunk@77748 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mstoltz%netscape.com
2000-08-31 05:53:32 +00:00
parent 8e90d0cb70
commit fc5da7534f
10 changed files with 103 additions and 92 deletions

View File

@@ -30,7 +30,8 @@
nsDocShellLoadInfo::nsDocShellLoadInfo()
{
NS_INIT_REFCNT();
mLoadType = nsIDocShellLoadInfo::loadNormal;
mLoadType = nsIDocShellLoadInfo::loadNormal;
mInheritOwner = PR_FALSE;
}
nsDocShellLoadInfo::~nsDocShellLoadInfo()
@@ -83,6 +84,20 @@ NS_IMETHODIMP nsDocShellLoadInfo::SetOwner(nsISupports* aOwner)
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::GetInheritOwner(PRBool* aInheritOwner)
{
NS_ENSURE_ARG_POINTER(aInheritOwner);
*aInheritOwner = mInheritOwner;
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::SetInheritOwner(PRBool aInheritOwner)
{
mInheritOwner = aInheritOwner;
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::GetLoadType(nsDocShellInfoLoadType * aLoadType)
{
NS_ENSURE_ARG_POINTER(aLoadType);