[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.
This commit is contained in:
Moonchild 2021-02-21 10:32:47 +00:00 committed by roytam1
commit d867f26c0e
9 changed files with 34 additions and 9 deletions

View file

@ -25,7 +25,8 @@ public:
NS_IMETHOD Init(mozIDOMWindowProxy* aParent,
const nsAString& aTitle,
int16_t aMode);
int16_t aMode,
bool aRequireInteraction = false);
NS_IMETHOD Open(nsIFilePickerShownCallback *aCallback);
NS_IMETHOD AppendFilters(int32_t filterMask);