Bug 695758 - Don't limit E10s event/focus handling to xul:browser, but allow also xul:iframe, r=felipe

This commit is contained in:
Olli Pettay 2011-10-20 15:11:31 +03:00
Родитель 68b592f051
Коммит 9680eca5eb
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1675,7 +1675,8 @@ nsEventStateManager::DispatchCrossProcessEvent(nsEvent* aEvent, nsIFrameLoader*
bool bool
nsEventStateManager::IsRemoteTarget(nsIContent* target) { nsEventStateManager::IsRemoteTarget(nsIContent* target) {
return target && return target &&
target->Tag() == nsGkAtoms::browser && (target->Tag() == nsGkAtoms::browser ||
target->Tag() == nsGkAtoms::iframe) &&
target->IsXUL() && target->IsXUL() &&
target->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote, target->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote,
nsGkAtoms::_true, eIgnoreCase); nsGkAtoms::_true, eIgnoreCase);

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

@ -2980,7 +2980,8 @@ nsFocusManager::GetRootForFocus(nsPIDOMWindow* aWindow,
TabParent* TabParent*
nsFocusManager::GetRemoteForContent(nsIContent* aContent) { nsFocusManager::GetRemoteForContent(nsIContent* aContent) {
if (!aContent || if (!aContent ||
aContent->Tag() != nsGkAtoms::browser || (aContent->Tag() != nsGkAtoms::browser &&
aContent->Tag() != nsGkAtoms::iframe) ||
!aContent->IsXUL() || !aContent->IsXUL() ||
!aContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote, !aContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote,
nsGkAtoms::_true, eIgnoreCase)) nsGkAtoms::_true, eIgnoreCase))