Backed out changeset 7da82c2eea17 (bug 1597488) for chrome failures at layout/xul/test/test_resizer.xhtml on a CLOSED TREE

This commit is contained in:
Coroiu Cristina 2020-01-03 17:14:49 +02:00
Родитель fb45407510
Коммит bb687ca476
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -340,7 +340,9 @@ nsIContent* nsResizerFrame::GetContentToResize(mozilla::PresShell* aPresShell,
}
// don't allow resizing windows in content shells
if (aPresShell->GetPresContext()->IsChrome()) {
nsCOMPtr<nsIDocShellTreeItem> dsti =
aPresShell->GetPresContext()->GetDocShell();
if (!dsti || dsti->ItemType() != nsIDocShellTreeItem::typeChrome) {
// don't allow resizers in content shells, except for the viewport
// scrollbar which doesn't have a parent
nsIContent* nonNativeAnon =