Bug 471560 - This assertion isn't correct, since it's fine to *create* a constructor cross-origins as long as the calling script can't *use* it. r=bent sr=jst

This commit is contained in:
Blake Kaplan 2009-01-06 15:10:58 -05:00
parent 8ce81994af
commit a5735c81e7

View File

@ -5252,8 +5252,6 @@ nsDOMConstructor::Create(const PRUnichar* aName,
!(currentInner = aOwner)->IsInnerWindow())) {
return NS_ERROR_DOM_SECURITY_ERR;
}
NS_ASSERTION(nsContentUtils::CanCallerAccess(currentInner),
"Must be able to access currentInner!");
*aResult = new nsDOMConstructor(aName, aNameStruct, currentInner);
NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(*aResult);