From 9831eb8e757a4a8b0ca9466f131298504ea06f63 Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Fri, 15 Oct 2004 17:20:21 +0000 Subject: [PATCH] Fixing bug 263388. Patch by trev@gtchat.de. Make opening filepickers possible from frames that are not displayed, i.e. have no widget. r=jst@mozilla.org, sr=bzbarsky@mit.edu --- widget/src/xpwidgets/nsBaseFilePicker.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/widget/src/xpwidgets/nsBaseFilePicker.cpp b/widget/src/xpwidgets/nsBaseFilePicker.cpp index a91054294e11..95ece1030aa7 100644 --- a/widget/src/xpwidgets/nsBaseFilePicker.cpp +++ b/widget/src/xpwidgets/nsBaseFilePicker.cpp @@ -92,8 +92,6 @@ nsIWidget *nsBaseFilePicker::DOMWindowToWidget(nsIDOMWindow *dw) nsCOMPtr parent; docShellAsItem->GetSameTypeParent(getter_AddRefs(parent)); - if (!parent) - return nsnull; sgo = do_GetInterface(parent); if (!sgo)