diff options
Diffstat (limited to 'dom/ipc/FilePickerParent.cpp')
-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 3e8301f24..1438e374f 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 |