Simon Kulessa created TRINIDAD-2458:
---------------------------------------

             Summary: FrameBusting functionality missing with ProjectStage 
Production
                 Key: TRINIDAD-2458
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2458
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.1.1-core
         Environment: Apache Tomcat 7.0.47 (64bit),
JDK 7u40 (64bit),
Firefox
            Reporter: Simon Kulessa
            Priority: Minor


When deploying a webapp and trying to access the UI Firefox does not show the 
page. The Error Console display an error that the JavaScript Function 
'frameBusting' is not known.

Part of the html that triggers the error:
<script 
type="text/javascript">TrPage.__frameBusting("differentOrigin");</script>

This happens in case the ProjectStage is put to 'Production' - the Common.js 
does not contain the function.
If the ProjectStage is set to 'Development' then the function is contained in 
the DebugCommon.js script.

I checked the resource folders in the trinidad-impl (2.1.1-SNAPSHOT) jar,
both Page.js files (in jsLibs and jsLibsDebug) seem to contain the relevant 
function. My guess would be that it is an error of the class, which generates 
the common.js script.

To workaround this issue I had to deactivate the FrameBusting functionality in 
the web.xml. Afterwards the UI showed the page as expected.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to