diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-21 10:32:47 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-21 10:32:47 +0000 |
commit | 98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d (patch) | |
tree | 5d194dc3e53b4f5a4fa6b31b7756bf426fbe3cb9 /widget/nsBaseFilePicker.cpp | |
parent | 2b6effbf29cb4f7aa85e4f697c79c473cc4c9ea4 (diff) | |
download | UXP-98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d.tar UXP-98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d.tar.gz UXP-98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d.tar.lz UXP-98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d.tar.xz UXP-98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d.zip |
[widget] Require user interaction when picking files or folders v2
Now with extra sauce to make it work cross-platform and cross-versions and
for HTML input elements only.
Diffstat (limited to 'widget/nsBaseFilePicker.cpp')
-rw-r--r-- | widget/nsBaseFilePicker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/nsBaseFilePicker.cpp b/widget/nsBaseFilePicker.cpp index d65ffb651..1bcd78b46 100644 --- a/widget/nsBaseFilePicker.cpp +++ b/widget/nsBaseFilePicker.cpp @@ -166,7 +166,8 @@ nsBaseFilePicker::~nsBaseFilePicker() NS_IMETHODIMP nsBaseFilePicker::Init(mozIDOMWindowProxy* aParent, const nsAString& aTitle, - int16_t aMode) + int16_t aMode, + bool aRequireInteraction) { NS_PRECONDITION(aParent, "Null parent passed to filepicker, no file " "picker for you!"); |