Expose referrer from web shell.

r=travis
needed for bug 11963.


git-svn-id: svn://10.0.0.236/trunk@51753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com
1999-10-25 22:20:10 +00:00
parent 80f773ac31
commit 2c73987122
3 changed files with 19 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ public:
NS_IMETHOD SetParent(nsIWebShell* aParent);
NS_IMETHOD GetParent(nsIWebShell*& aParent);
NS_IMETHOD GetParentEvenIfChrome(nsIWebShell*& aParent);
NS_IMETHOD GetReferrer(nsIURI **aReferrer);
NS_IMETHOD GetChildCount(PRInt32& aResult);
NS_IMETHOD AddChild(nsIWebShell* aChild);
NS_IMETHOD RemoveChild(nsIWebShell* aChild);
@@ -1576,6 +1577,12 @@ nsWebShell::GetParentEvenIfChrome(nsIWebShell*& aParent)
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::GetReferrer(nsIURI **aReferrer)
{
return NS_NewURI(aReferrer, mReferrer, nsnull);
}
NS_IMETHODIMP
nsWebShell::GetChildCount(PRInt32& aResult)
{

View File

@@ -260,6 +260,11 @@ public:
*/
NS_IMETHOD GetParentEvenIfChrome(nsIWebShell*& aParent) = 0;
/**
* Get the referrer of the link using this WebShell.
*/
NS_IMETHOD GetReferrer(nsIURI **aReferrer) = 0;
/**
* Return the current number of WebShells which are immediate children
* of the current WebShell.

View File

@@ -199,6 +199,7 @@ public:
NS_IMETHOD SetParent(nsIWebShell* aParent);
NS_IMETHOD GetParent(nsIWebShell*& aParent);
NS_IMETHOD GetParentEvenIfChrome(nsIWebShell*& aParent);
NS_IMETHOD GetReferrer(nsIURI **aReferrer);
NS_IMETHOD GetChildCount(PRInt32& aResult);
NS_IMETHOD AddChild(nsIWebShell* aChild);
NS_IMETHOD RemoveChild(nsIWebShell* aChild);
@@ -1576,6 +1577,12 @@ nsWebShell::GetParentEvenIfChrome(nsIWebShell*& aParent)
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::GetReferrer(nsIURI **aReferrer)
{
return NS_NewURI(aReferrer, mReferrer, nsnull);
}
NS_IMETHODIMP
nsWebShell::GetChildCount(PRInt32& aResult)
{