Bug 794259 (JBEPP-1310)

Summary: Fix Javascript for Opera browser
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: William Antônio <wsiqueir>
Component: PortalAssignee: hfnukal <hfnukal>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1.0.GACC: krokodylowy3, theute, wsiqueir
Target Milestone: ---   
Target Release: 5.2.0.ER06   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1310
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-02 16:47:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description William Antônio 2011-10-24 11:33:48 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000008SqGW
Steps to Reproduce: Access EPP home page with Opera browser and try to Sign In.
Workaround: Workaround Exists
Workaround Description: An user after modify {profile}/deploy/gatein.ear/01eXoResources.war/javascript/eXo/core/Browser.js file could have it working. Here is the patch for the changes:

Browser.prototype.initOpera = function() {
this.browserType = "opera" ;
this.getBrowserHeight = function() { return document.body.clientHeight ; }
this.getBrowserWidth = function() { return document.body.clientWidth ; }
>> this.eventListener = function(object, event, operation) { object.addEventListener(event, operation, false) ; }
>> this.setOpacity = function(component, value) { component.style.opacity = value/100 ; }
>> this.getEventSource = function(e) { return e.target ; }
} ;
project_key: JBEPP

There are some JIRAs regarding Opera browser and EPP. When you try to access EPP home page using Opera a Javascript error is raised:

Uncaught exception: TypeError: 'Browser.setOpacity' is not a function


After implementing this function EPP should works with Opera browser.

Comment 2 William Antônio 2011-10-24 12:12:08 UTC
Help Desk Ticket Reference: Added: https://c.na7.visual.force.com/apex/Case_View?id=500A0000008SqGW
Steps to Reproduce: Added: Access EPP home page with Opera browser.
Workaround Description: Added: An user after modify {profile}/deploy/gatein.ear/01eXoResources.war/javascript/eXo/core/Browser.js file could have it working.
Workaround: Added: Workaround Exists


Comment 4 William Antônio 2011-10-24 13:27:46 UTC
The same issue is described in this GateIn JIRA:

https://issues.jboss.org/browse/GTNPORTAL-1001

Comment 5 William Antônio 2011-10-24 13:35:53 UTC
Steps to Reproduce: Removed: Access EPP home page with Opera browser. Added: Access EPP home page with Opera browser and try to Sign In.
Workaround Description: Removed: An user after modify {profile}/deploy/gatein.ear/01eXoResources.war/javascript/eXo/core/Browser.js file could have it working. Added: An user after modify {profile}/deploy/gatein.ear/01eXoResources.war/javascript/eXo/core/Browser.js file could have it working. Here is the patch for the changes:

Browser.prototype.initOpera = function() {
this.browserType = "opera" ;
this.getBrowserHeight = function() { return document.body.clientHeight ; }
this.getBrowserWidth = function() { return document.body.clientWidth ; }
>> this.eventListener = function(object, event, operation) { object.addEventListener(event, operation, false) ; }
>> this.setOpacity = function(component, value) { component.style.opacity = value/100 ; }
>> this.getEventSource = function(e) { return e.target ; }

} ;


Comment 6 Thomas Heute 2011-10-24 13:41:19 UTC
Link: Added: This issue is related to GTNPORTAL-1001


Comment 7 Thomas Heute 2011-10-24 13:41:43 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 9 Krashan Brahmanjara 2011-10-24 14:00:35 UTC
Prioryt is too low.

Black screen and error occurs if js code trying to create transparen mask with  eXo.core.UIMaskLayer.createTransparentMask() method - modal popups, some submits etc.

Comment 10 Jared MORGAN 2011-11-29 22:48:18 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue
Release Notes Text: Added: If the Opera browser is used to access the portal home page, a Javascript Uncaught exception is raised: "TypeError: 'Browser.setOpacity' is not a function".  The fix incorporates a verified customer-submitted patch to Browser.js, which allows Opera browsers to access the portal home page.