Copyright Button Throwing JS Error on Firefox

mibarge's picture

Hi,

Recently I noticed some H5P exercises not loading on Firefox 50.1.0 (Mac). The browser times out. The console output is:

Error: Script terminated by timeout at:
H5P.findCopyrights@https://h5p.org/sites/all/modules/h5p/library/js/h5p.js?ojb20f:1056:1
H5P.findCopyrights@https://h5p.org/sites/all/modules/h5p/library/js/h5p.js?ojb20f:1045:9
H5P.findCopyrights@https://h5p.org/sites/all/modules/h5p/library/js/h5p.js?ojb20f:1045:9
H5P.findCopyrights@https://h5p.org/sites/all/modules/h5p/library/js/h5p.js?ojb20f:1045:9
...
H5P.findCopyrights@https://h5p.org/sites/all/modules/h5p/library/js/h5  h5p.js:1056:1

 

The console indicates the error occurs at: h5p.js:1056:1 

At which line the debugger shows an empty else statement:

else {
}

 

I found that unchecking the 'Copyright button' option in the exercise editor solves the issue. 

The problem doesn't occur on Chrome. 

Thanks.

Martin

icc's picture

Hi! Thank you for reporting this issue and with all the details needed to reproduce it. The issue has been fixed and will be released with the upcoming version that is just around the corner.

Again, thank you Martin for letting us know!

mibarge's picture

Hi. Glad to help and thanks for so quickly responding!