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:
Greg Stoll
2024-01-22 13:56:07 +00:00
parent b0ad584e56
commit df896d7e12
10 changed files with 204 additions and 22 deletions

View File

@@ -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()) {