Fixing regression bug 246923. Bring back to life the fix for bug 13871, and improve on the fix for bug 246448. r=dveditz@cruzio.com, sr=darin@meer.net

git-svn-id: svn://10.0.0.236/trunk@158369 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com 2004-06-23 17:48:36 +00:00
parent 472233cafb
commit 7588926669

View File

@ -5500,7 +5500,10 @@ nsDocShell::GetCurrentDocumentOwner(nsISupports ** aOwner)
}
//-- Get the document's principal
*aOwner = document->GetPrincipal();
if (document) {
*aOwner = document->GetPrincipal();
}
NS_IF_ADDREF(*aOwner);
}