diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index 5c9d935ae1f5..4132825c63d3 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -1675,7 +1675,8 @@ nsEventStateManager::DispatchCrossProcessEvent(nsEvent* aEvent, nsIFrameLoader* bool nsEventStateManager::IsRemoteTarget(nsIContent* target) { return target && - target->Tag() == nsGkAtoms::browser && + (target->Tag() == nsGkAtoms::browser || + target->Tag() == nsGkAtoms::iframe) && target->IsXUL() && target->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote, nsGkAtoms::_true, eIgnoreCase); diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 49f1205e8d4b..c60503a02eca 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -2980,7 +2980,8 @@ nsFocusManager::GetRootForFocus(nsPIDOMWindow* aWindow, TabParent* nsFocusManager::GetRemoteForContent(nsIContent* aContent) { if (!aContent || - aContent->Tag() != nsGkAtoms::browser || + (aContent->Tag() != nsGkAtoms::browser && + aContent->Tag() != nsGkAtoms::iframe) || !aContent->IsXUL() || !aContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::Remote, nsGkAtoms::_true, eIgnoreCase))