зеркало из https://github.com/mozilla/pjs.git
Fix for http referrer not being sent when session history urls are loaded from the network. b=61426 sr=rpotts@netscape.com
This commit is contained in:
Родитель
2862a68f37
Коммит
d374d374fd
|
@ -41,6 +41,9 @@ interface nsISHEntry : nsISupports
|
|||
/** URI for the document */
|
||||
void SetURI(in nsIURI aURI);
|
||||
|
||||
/** Referrer URI */
|
||||
attribute nsIURI referrerURI;
|
||||
|
||||
/** DOM Document */
|
||||
attribute nsIDOMDocument document;
|
||||
|
||||
|
|
|
@ -84,6 +84,20 @@ NS_IMETHODIMP nsSHEntry::SetURI(nsIURI* aURI)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsSHEntry::GetReferrerURI(nsIURI **aReferrerURI)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aReferrerURI);
|
||||
*aReferrerURI = mReferrerURI;
|
||||
NS_IF_ADDREF(*aReferrerURI);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsSHEntry::SetReferrerURI(nsIURI *aReferrerURI)
|
||||
{
|
||||
mReferrerURI = aReferrerURI;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsSHEntry::SetDocument(nsIDOMDocument* aDocument)
|
||||
{
|
||||
mDocument = aDocument;
|
||||
|
|
|
@ -56,6 +56,7 @@ private:
|
|||
|
||||
|
||||
nsCOMPtr<nsIURI> mURI;
|
||||
nsCOMPtr<nsIURI> mReferrerURI;
|
||||
nsCOMPtr<nsIDOMDocument> mDocument;
|
||||
nsString mTitle;
|
||||
nsCOMPtr<nsIInputStream> mPostData;
|
||||
|
|
Загрузка…
Ссылка в новой задаче