google-recaptcha icon indicating copy to clipboard operation
google-recaptcha copied to clipboard

challenge fails to load on Firefox and IE

Open ghost opened this issue 10 years ago • 11 comments

TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element.

Above is the error message when clicking "I'm not a robot." in Firefox and IE. The challenge loads fine in Chrome, Safari, and Opera.

ghost avatar Feb 20 '15 22:02 ghost

@cbalit do you see this in your upstream repo too?

addyosmani avatar Feb 21 '15 14:02 addyosmani

@addyosmani yep it seems that it comes from paltform.js on getComputedStyle function

getComputedStyle: function (a, b) { return g(), l.call(h(this), i(a), b) }

No idea why, I'll make some test on monday (i'm in holiday)

cbalit avatar Feb 21 '15 21:02 cbalit

Thanks for verifying, @cbalit. Enjoy your vacation!

addyosmani avatar Feb 21 '15 22:02 addyosmani

@cbalit is there any chance this will be fixed in the next few weeks? The current state of being broken in FF and IE prohibits this component's usage in production applications. I'd just like to get an idea of when this will be fixed so as to plan our application's roadmap around it.

ghost avatar Mar 05 '15 00:03 ghost

@triune i'n not sure to see how to deal with it, since it cames from webcomponents.js and the only available solution is to wrap recaptcha.js file. By the way you sais you made it work by wraping the recaptha api. Even that i didn't suceed. Do you have an exemple of that ?

cbalit avatar Mar 06 '15 14:03 cbalit

@cbalit errantly I thought I had it working because captcha was not presenting a challenge question in FF or IE, just a checkbox for completion; our application worked. However, further testing revealed that wrapping the code did not solve the problem at all. At this point we have to add a major hack to our code to disable recaptcha in the user registration process for IE and FF users until an alternate workaround can be devised or a webcomponents fix because we cannot simply remove Polymer (the other solution).

ghost avatar Mar 07 '15 05:03 ghost

This issue seems to have been resolved with Polymer 1.0.0 and google-recaptcha 1.0.0

ghost avatar Jul 29 '15 23:07 ghost

Just tested the demos on http://cbalit.github.io/re-captcha/components/re-captcha/ in latest Firefox (41.0.1) on OS X 10.10.5 and it worked, fwiw. (First few times it believed I'm not a robot without making me solve the puzzle but when it finally asked me to it worked.)

jab avatar Oct 08 '15 00:10 jab

@jab the re-captcha component can validate only by clicking the checkbox. You can find some informations on it here : http://qnimate.com/how-does-googles-no-captcha-recaptcha-work/

cbalit avatar Oct 29 '15 18:10 cbalit

@cbalit I know, all I was saying is that I tested both the case where it doesn't ask you to solve the puzzle, and the case where it does, and both cases worked in Firefox for me.

jab avatar Oct 30 '15 15:10 jab

@jab my misunderstanding. Happy to see that it's working

cbalit avatar Oct 30 '15 18:10 cbalit