diff options
Diffstat (limited to 'dom/ipc')
-rw-r--r-- | dom/ipc/FilePickerParent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/ipc/FilePickerParent.cpp b/dom/ipc/FilePickerParent.cpp index 3e8301f246..1438e374fe 100644 --- a/dom/ipc/FilePickerParent.cpp +++ b/dom/ipc/FilePickerParent.cpp @@ -248,7 +248,8 @@ FilePickerParent::CreateFilePicker() return false; } - return NS_SUCCEEDED(mFilePicker->Init(window, mTitle, mMode)); + return NS_SUCCEEDED(mFilePicker->Init(window, mTitle, mMode, + element->IsNodeOfType(nsINode::eHTML_FORM_CONTROL))); } bool |