Bug 1214491 - Remove CanCallerAccess check for XPIDL version of nsGlobalWindow::AddEventListener. r=bz

This commit is contained in:
Bobby Holley 2015-10-13 22:27:44 -07:00
Родитель 79e78b4bf9
Коммит 4d5db59c95
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -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;