mozilla/pdf.js — pull request #969 by arturadib (2011-12-22 14:47:39+00:00)
Title: Fix worker_loader.js for examples/. Simpler code

Our examples/ were broken due to a path resolution issue in `worker_loader.js`.

The spec for `importScripts()` is a [little cryptic](http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#importing-scripts-and-libraries) about how it resolves URLs, but both Chrome and Firefox seem to resolve relative to where `worker_loader.js` is, so there's no need to add a `dir` prefix.

Also, since we don't need the path we also don't seem to need the `workerSrc` message.

Tested with both Chrome Dev and Firefox Nightly in:

+ examples/helloworld
+ examples/acroforms
+ web/viewer.html
+ web/viewer-production.html
+ make test