changeset 979:65cb5965ec77

Add missing shouldPromptUser check to Partially Signed dialog
author Andrew Azores <aazores@redhat.com>
date Mon, 07 Apr 2014 10:30:22 -0400
parents aa4ee1301885
children f664addf7da2
files ChangeLog netx/net/sourceforge/jnlp/security/SecurityDialogs.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Apr 02 15:52:42 2014 -0400
+++ b/ChangeLog	Mon Apr 07 10:30:22 2014 -0400
@@ -1,3 +1,8 @@
+2014-04-07  Andrew Azores  <aazores@redhat.com>
+
+	* netx/net/sourceforge/jnlp/security/SecurityDialogs.java:
+	(showPartiallySignedWarningDialog) add missing shouldPromptUser check
+
 2014-04-02  Omair Majid  <omajid@redhat.com>
 
 	* netx/net/sourceforge/jnlp/util/ClasspathMatcher.java
--- a/netx/net/sourceforge/jnlp/security/SecurityDialogs.java	Wed Apr 02 15:52:42 2014 -0400
+++ b/netx/net/sourceforge/jnlp/security/SecurityDialogs.java	Mon Apr 07 10:30:22 2014 -0400
@@ -224,6 +224,10 @@
     public static AppSigningWarningAction showPartiallySignedWarningDialog(JNLPFile file, CertVerifier certVerifier,
             SecurityDelegate securityDelegate) {
 
+        if (!shouldPromptUser()) {
+            return new AppSigningWarningAction(ExecuteAppletAction.NO, false);
+        }
+
         final SecurityDialogMessage message = new SecurityDialogMessage();
         message.dialogType = DialogType.PARTIALLYSIGNED_WARNING;
         message.accessType = AccessType.PARTIALLYSIGNED;