Bug 1597488 - Fix uses of nsResizerFrame::GetContentToResize in layout/xul/nsResizerFrame.cpp. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D58483

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tetsuharu OHZEKI 2020-01-03 13:45:46 +00:00
parent de5c64c8f9
commit ddb1860966

View File

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