numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
202 stars 117 forks source link

Error when opening in Firefox (Ubuntu) #282

Closed keithnewman closed 11 years ago

keithnewman commented 11 years ago

When opening Numbas in a Firefox browser (Version 23.0) in Ubuntu and Windows, the following error message (screenshot attached) appears and the exam does not continue to load. This so far has not been seen in Chromium on Ubuntu, or other browsers on Windows and Apple devices.

screenshot from 2013-08-09 18 06 14

Edit: Also found to produce the same error on Firefox (version 22.0 and 23.0) in Windows 7.

anthonyyoud commented 11 years ago

I can't reproduce this with any exams (including the Input exam in the screenshot) on Firefox 23.0 under Ubuntu.

Perhaps clear the browser cache and try again?

On 15/08/13 18:10, keithnewman wrote:

When opening Numbas in a Firefox browser (Version 23.0) in Ubuntu, the following error message (screenshot attached) appears and the exam does not continue to load. This so far has not been seen in Chromium on Ubuntu, or browsers on Windows and Apple devices.

screenshot from 2013-08-09 18 06 14 https://f.cloud.github.com/assets/932250/969932/25026ca0-05cd-11e3-94b2-07f2425932f0.png

— Reply to this email directly or view it on GitHub https://github.com/numbas/Numbas/issues/282.

anthonyyoud commented 11 years ago

I can reproduce this now. This happens when links on pages force the exams to open in new windows/tabs by using <a href="..." target="_blank">. It only seems to affect Firefox. The Firefox console says

Timestamp: 16/08/13 13:25:32
Error: Error: Permission denied to access property 'API'
Source File: https://numbas.mathcentre.ac.uk/numbas-previews/exam-444-using-numbas/scripts/SCORM_API_wrapper.js
Line: 76
christianp commented 11 years ago

Very helpful, Anthony! I know what's causing this now. Should be an easy fix when I get back.