зеркало из https://github.com/mozilla/gecko-dev.git
Bug 695758 - Don't limit E10s event/focus handling to xul:browser, but allow also xul:iframe, r=felipe
This commit is contained in:
Родитель
954dd90cef
Коммит
4533393482
|
@ -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))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче