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

This commit is contained in:
jst@mozilla.jstenback.com
2004-06-23 17:48:36 +00:00
parent fc7da31e71
commit d3881a526e

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);
}