зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1214491 - Remove CanCallerAccess check for XPIDL version of nsGlobalWindow::AddEventListener. r=bz
This commit is contained in:
Родитель
79e78b4bf9
Коммит
4d5db59c95
|
@ -10003,11 +10003,6 @@ nsGlobalWindow::AddEventListener(const nsAString& aType,
|
|||
"aWantsUntrusted to false or make the aWantsUntrusted "
|
||||
"explicit by making optional_argc non-zero.");
|
||||
|
||||
if (IsOuterWindow() && mInnerWindow &&
|
||||
!nsContentUtils::CanCallerAccess(mInnerWindow)) {
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
||||
if (!aWantsUntrusted &&
|
||||
(aOptionalArgc < 2 && !nsContentUtils::IsChromeDoc(mDoc))) {
|
||||
aWantsUntrusted = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче