sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

win.location causes ExecutionError: too much recursion #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Either this:
print( win.location )

or that:
print( win.location.pathname )

NB: merci pour ta patience à dépiler ;)

Original issue reported on code.google.com by pedro.ro...@gmail.com on 31 Dec 2012 at 1:24

GoogleCodeExporter commented 9 years ago
After a few investigations, I found that it's related to a bug in Firefox :
https://bugzilla.mozilla.org/show_bug.cgi?id=814622
Trying to access window.location.constructor raises "too much recursion" error
I patched py_dom.js so that win.location returns a customized object

Original comment by pierre.q...@gmail.com on 1 Jan 2013 at 1:35