[richfaces-issues] [JBoss JIRA] (RF-11838) Warning in Chrome console for pages with ajax

Brian Leathem (JIRA) jira-events at lists.jboss.org
Fri Jan 27 12:17:49 EST 2012


    [ https://issues.jboss.org/browse/RF-11838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662465#comment-12662465 ] 

Brian Leathem commented on RF-11838:
------------------------------------

In richfaces-queue.js, we copy the event (otherwise IE fails) on [Line 129|https://github.com/richfaces/core/blob/develop/impl/src/main/resources/META-INF/resources/richfaces-queue.js#L129]:

{code:title=richfaces-queue.js|Line 129}
this.event = $.extend({}, event);
{code}

Since layerX and layerY are still properties of the Webkit event (they have not *yet* been removed), we are copying them in our event copy.  The access to the event properties triggers the error.

On solution is to remove the properties from the event prior to copying the event, as investigated quite thoroughly by the jsperf team:
http://jsperf.com/removing-event-props/2

                
> Warning in Chrome console for pages with ajax
> ---------------------------------------------
>
>                 Key: RF-11838
>                 URL: https://issues.jboss.org/browse/RF-11838
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: compatibility
>    Affects Versions: 4.1.0.Final
>         Environment: Google Chrome 16.0.912.63
>            Reporter: Pavol Pitonak
>             Fix For: 4.2.0.CR1
>
>
> # open Showcase in Chrome http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=ajax&skin=blueSky
> # open browser console
> # type "xxx" into input
> result:
> The following warning is displayed in browser console 6 times (twice for each Ajax request). Seems to be Chrome-specific and seems not to influence functionality of any component.
> {quote}
> event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list