Bug 794259 (JBEPP-1310) - Fix Javascript for Opera browser
Summary: Fix Javascript for Opera browser
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1310
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.0.GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.2.0.ER06
Assignee: hfnukal@redhat.com
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-24 11:33 UTC by William Antônio
Modified: 2011-11-29 22:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-02 16:47:31 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1310 0 None None None Never

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. 



Note You need to log in before you can comment on or make changes to this bug.