mozilla/pdf.js — pull request #1617 by merkste (2012-04-26 10:31:28+00:00)
Title: Opera, Mac: exception on importScript jpg.js locally

If you open viewer.html on your local computer in Opera, worker_loader.js throws an exception for each script file imported after '../external/jpgjs/jpg.js'.

It does not happen if you access viewer.html on a server or if jpg.js is not placed in a subfolder of the parent folder '..'. Although I do not understand fully what is going on here, the fix is straightforward: importing jpg.js last.

I am interested if someone has an explanation of this behavior. Either we should file a bug report for Opera or there is another issue on our usage of importScripts ...