My Facebook application contains Javascript that works in Firefox and IE, but aborts in Chrome.
In the Javascript console it gives several errors.including:
Uncaught TypeError: Object onloadhooks has no method 'replace'
There are similar errors complaining about a missing method for ‘toLowerCase’.
Stop Press Problem no longer occurs. Chrome appears to have patched the error.
According to the Chrome developers (Issue 1717), this is an issue with the Facebook FBJS library, and something they plan to escalate to Facebook.
I don’t have a workaround for this in the meantime.