File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
browser/components/contentanalysis/content Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ XPCOMUtils.defineLazyPreferenceGetter(
42
42
"A DLP agent"
43
43
) ;
44
44
45
+ XPCOMUtils . defineLazyPreferenceGetter (
46
+ lazy ,
47
+ "showBlockedResult" ,
48
+ "browser.contentanalysis.show_blocked_result" ,
49
+ true
50
+ ) ;
51
+
45
52
/**
46
53
* A class that groups browsing contexts by their top-level one.
47
54
* This is necessary because if there may be a subframe that
@@ -705,6 +712,10 @@ export const ContentAnalysis = {
705
712
lazy . gContentAnalysis . respondToWarnDialog ( aRequestToken , allow ) ;
706
713
return null ;
707
714
case Ci . nsIContentAnalysisResponse . eBlock :
715
+ if ( ! lazy . showBlockedResult ) {
716
+ // Don't show anything
717
+ return null ;
718
+ }
708
719
message = await this . l10n . formatValue ( "contentanalysis-block-message" , {
709
720
content : this . _getResourceNameFromNameOrOperationType (
710
721
aResourceNameOrOperationType
You can’t perform that action at this time.
0 commit comments