You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/04/29 15:13:42 UTC

svn commit: r1477039 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java

Author: lofwyr
Date: Mon Apr 29 13:13:42 2013
New Revision: 1477039

URL: http://svn.apache.org/r1477039
Log:
TOBAGO-1171: Support for the Content Security Policy (CSP)

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java?rev=1477039&r1=1477038&r2=1477039&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java Mon Apr 29 13:13:42 2013
@@ -248,11 +248,19 @@ public final class HtmlRendererUtils {
     }
   }
 
+  /**
+   * @deprecated Since Tobago 2.0.0. Because of CSP.
+   */
+  @Deprecated
   public static void writeScriptLoader(FacesContext facesContext, String script)
       throws IOException {
     writeScriptLoader(facesContext, new String[]{script}, null);
   }
 
+  /**
+   * @deprecated Since Tobago 2.0.0. Because of CSP.
+   */
+  @Deprecated
   public static void writeScriptLoader(FacesContext facesContext, String[] scripts, String[] afterLoadCmds)
       throws IOException {
     TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
@@ -304,6 +312,10 @@ public final class HtmlRendererUtils {
     writer.endJavascript();
   }
 
+  /**
+   * @deprecated Since Tobago 2.0.0. Because of CSP.
+   */
+  @Deprecated
   public static void writeStyleLoader(
       FacesContext facesContext, String[] styles) throws IOException {
     TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);