diff --git a/mozilla/view/src/nsView.cpp b/mozilla/view/src/nsView.cpp index 8de933f8d6e..b3efa98d794 100644 --- a/mozilla/view/src/nsView.cpp +++ b/mozilla/view/src/nsView.cpp @@ -660,10 +660,6 @@ nsresult nsIView::CreateWidget(const nsIID &aWindowIID, : nsnull; trect += offset; if (aWidgetInitData->mWindowType == eWindowType_popup) { - // Without a parent, we can't make a popup. This can happen - // when printing - if (!parentWidget) - return NS_ERROR_FAILURE; mWindow->Create(parentWidget->GetNativeData(NS_NATIVE_WIDGET), trect, ::HandleEvent, dx, nsnull, nsnull, aWidgetInitData); } else {