зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656107 - remove FindContentForSubDocument use from nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98615
This commit is contained in:
Родитель
9d6ebdf094
Коммит
1cb3847d1b
|
@ -5148,13 +5148,10 @@ void nsGlobalWindowOuter::FocusOuter(CallerType aCallerType) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
nsCOMPtr<Document> parentdoc = parent->GetDocument();
|
||||
if (!parentdoc) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Element* frame = parentdoc->FindContentForSubDocument(mDoc)) {
|
||||
nsContentUtils::RequestFrameFocus(*frame, canFocus, aCallerType);
|
||||
if (!bc->IsCached()) {
|
||||
if (Element* frame = bc->GetEmbedderElement()) {
|
||||
nsContentUtils::RequestFrameFocus(*frame, canFocus, aCallerType);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче