https://issues.apache.org/jira/browse/MYFACES-3653 adding a universal solution which works on all recent browsers