Bug 1872179 - Part 3: File picker file uploads consult content analysis r=rkraesig,win-reviewers
File picker upload operations check with any connected content analysis tool before giving access to the web page. Differential Revision: https://phabricator.services.mozilla.com/D198456
This commit is contained in:
@@ -818,7 +818,8 @@ nsresult HTMLInputElement::InitFilePicker(FilePickerType aType) {
|
||||
mode = nsIFilePicker::modeOpen;
|
||||
}
|
||||
|
||||
nsresult rv = filePicker->Init(win, title, mode);
|
||||
nsresult rv =
|
||||
filePicker->Init(win, title, mode, OwnerDoc()->GetBrowsingContext());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!okButtonLabel.IsEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user