Bug 593491. Add some debugging output to diagnose intermittent orange.

This commit is contained in:
Timothy Nikkel 2010-09-11 13:24:49 -05:00
parent e0a0946a47
commit 19b4faee8e

View File

@ -1850,6 +1850,7 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace)
// change the principals of a document for security reasons we'll have to
// refuse to go ahead with this call.
NS_WARNING("No caller doc for open call.");
return NS_ERROR_DOM_SECURITY_ERR;
}
@ -1869,6 +1870,7 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace)
PRBool equals = PR_FALSE;
if (NS_FAILED(callerPrincipal->Equals(NodePrincipal(), &equals)) ||
!equals) {
NS_WARNING("Principals unequal for open call.");
return NS_ERROR_DOM_SECURITY_ERR;
}