diff --git a/content/base/src/nsContentUtils.cpp b/content/base/src/nsContentUtils.cpp index 0e3d3a61d02..6760bfdb4a0 100644 --- a/content/base/src/nsContentUtils.cpp +++ b/content/base/src/nsContentUtils.cpp @@ -3965,6 +3965,7 @@ nsContentUtils::HidePopupsInDocument(nsIDocument* aDocument) { NS_PRECONDITION(aDocument, "Null document"); +#ifdef MOZ_XUL nsXULPopupManager* pm = nsXULPopupManager::GetInstance(); if (pm) { nsCOMPtr container = aDocument->GetContainer(); @@ -3972,6 +3973,7 @@ nsContentUtils::HidePopupsInDocument(nsIDocument* aDocument) if (docShellToHide) pm->HidePopupsInDocShell(docShellToHide); } +#endif } /* static */