mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
8ce81994af
commit
a5735c81e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user