зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
1d7d91ceed
Коммит
9831eb8e75
|
@ -92,8 +92,6 @@ nsIWidget *nsBaseFilePicker::DOMWindowToWidget(nsIDOMWindow *dw)
|
||||||
|
|
||||||
nsCOMPtr<nsIDocShellTreeItem> parent;
|
nsCOMPtr<nsIDocShellTreeItem> parent;
|
||||||
docShellAsItem->GetSameTypeParent(getter_AddRefs(parent));
|
docShellAsItem->GetSameTypeParent(getter_AddRefs(parent));
|
||||||
if (!parent)
|
|
||||||
return nsnull;
|
|
||||||
|
|
||||||
sgo = do_GetInterface(parent);
|
sgo = do_GetInterface(parent);
|
||||||
if (!sgo)
|
if (!sgo)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче