Bug 1656107 - remove FindContentForSubDocument use from nsGlobalWindowOuter. r=farre

Differential Revision: https://phabricator.services.mozilla.com/D98615
This commit is contained in:
Steven MacLeod 2020-12-16 01:06:29 +00:00
Родитель 9d6ebdf094
Коммит 1cb3847d1b
1 изменённых файлов: 4 добавлений и 7 удалений

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

@ -5148,14 +5148,11 @@ void nsGlobalWindowOuter::FocusOuter(CallerType aCallerType) {
}
return;
}
nsCOMPtr<Document> parentdoc = parent->GetDocument();
if (!parentdoc) {
return;
}
if (Element* frame = parentdoc->FindContentForSubDocument(mDoc)) {
if (!bc->IsCached()) {
if (Element* frame = bc->GetEmbedderElement()) {
nsContentUtils::RequestFrameFocus(*frame, canFocus, aCallerType);
}
}
return;
}