Bug 1972786 - show various DLP agent errors for download operations a=diannaS
Show these errors in the download panel, etc. Original Revision: https://phabricator.services.mozilla.com/D254295 Differential Revision: https://phabricator.services.mozilla.com/D258587
This commit is contained in:
committed by
dsmith@mozilla.com
parent
5adc9375da
commit
b48f6f4035
@@ -352,8 +352,8 @@ export const ContentAnalysis = {
|
||||
windowAndResourceNameOrOperationType.resourceNameOrOperationType
|
||||
?.operationType === Ci.nsIContentAnalysisRequest.eDownload
|
||||
) {
|
||||
// Don't show warn/block dialogs for downloads; they're shown inside
|
||||
// the downloads panel.
|
||||
// Don't show warn/block/error dialogs for downloads; they're shown
|
||||
// inside the downloads panel.
|
||||
return;
|
||||
}
|
||||
const responseResult =
|
||||
@@ -744,10 +744,7 @@ export const ContentAnalysis = {
|
||||
_getErrorDialogMessage(aResourceNameOrOperationType) {
|
||||
if (aResourceNameOrOperationType.name) {
|
||||
return this.l10n.formatValueSync(
|
||||
aResourceNameOrOperationType.operationType ==
|
||||
Ci.nsIContentAnalysisRequest.eUpload
|
||||
? "contentanalysis-error-message-upload-file"
|
||||
: "contentanalysis-error-message-download-file",
|
||||
"contentanalysis-error-message-upload-file",
|
||||
{ filename: aResourceNameOrOperationType.name }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user