deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject deltaspike git commit: DELTASPIKE-932 removed not fully implemented noscript cookie handling
Date Thu, 16 Jul 2015 07:23:53 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 035a77076 -> 508ab2d8d


DELTASPIKE-932 removed not fully implemented noscript cookie handling

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/508ab2d8
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/508ab2d8
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/508ab2d8

Branch: refs/heads/master
Commit: 508ab2d8d081e0d9a520bf458faefed50257f471
Parents: 035a770
Author: tandraschko <tandraschko@apache.org>
Authored: Thu Jul 16 09:23:37 2015 +0200
Committer: tandraschko <tandraschko@apache.org>
Committed: Thu Jul 16 09:23:37 2015 +0200

----------------------------------------------------------------------
 .../scope/window/DefaultClientWindowConfig.java  | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/508ab2d8/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
b/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
index 63624ad..5763db3 100644
--- a/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
+++ b/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
@@ -22,7 +22,6 @@ import javax.annotation.PostConstruct;
 import javax.enterprise.context.SessionScoped;
 import javax.faces.context.FacesContext;
 import javax.inject.Inject;
-import javax.servlet.http.Cookie;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.Map;
@@ -43,11 +42,6 @@ import org.apache.deltaspike.jsf.api.config.base.JsfBaseConfig;
 @SessionScoped
 public class DefaultClientWindowConfig implements ClientWindowConfig
 {
-    /**
-     * We will set a cookie with this very name if a noscript link got clicked by the user
-     */
-    public static final String COOKIE_NAME_NOSCRIPT_ENABLED = "deltaspikeNoScriptEnabled";
-
     private static final long serialVersionUID = -708423418378550210L;
 
     /**
@@ -96,17 +90,6 @@ public class DefaultClientWindowConfig implements ClientWindowConfig
                 {
                     // no info means that it is default -> true
                     javaScriptEnabled = Boolean.TRUE;
-
-                    FacesContext facesContext = FacesContext.getCurrentInstance();
-                    if (facesContext != null)
-                    {
-                        Cookie cookie = (Cookie) facesContext.getExternalContext().
-                                getRequestCookieMap().get(COOKIE_NAME_NOSCRIPT_ENABLED);
-                        if (cookie != null)
-                        {
-                            javaScriptEnabled = Boolean.parseBoolean(cookie.getValue());
-                        }
-                    }
                 }
             }
         }
@@ -243,7 +226,7 @@ public class DefaultClientWindowConfig implements ClientWindowConfig
     {
         return this.maxWindowContextCount;
     }
-    
+
     @Override
     public boolean isClientWindowStoreWindowTreeEnabled()
     {


Mime
View raw message