summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
Diffstat (limited to 'dom')
-rw-r--r--dom/html/HTMLInputElement.cpp2
-rw-r--r--dom/ipc/FilePickerParent.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp
index 86d03d8f59..557e673e15 100644
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
@@ -866,7 +866,7 @@ HTMLInputElement::InitFilePicker(FilePickerType aType)
mode = static_cast<int16_t>(nsIFilePicker::modeOpen);
}
- nsresult rv = filePicker->Init(win, title, mode);
+ nsresult rv = filePicker->Init(win, title, mode, /*aRequireInteraction = */ true);
NS_ENSURE_SUCCESS(rv, rv);
if (!okButtonLabel.IsEmpty()) {
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