web workers on Chrome don't work locally

1,839 views
Skip to first unread message

Nik

unread,
Jun 8, 2010, 1:56:05 AM6/8/10
to Chromium-discuss
Hi Everyone,

I've come across an issue that I am unsure is a problem with Chrome or
my setup. Linked from the W3 page on Web Workers (http://dev.w3.org/
html5/workers/) there is there prime numbers demo (http://
www.whatwg.org/demos/workers/primes/page.html). This example works
online when I view it on Chrome, however, when I download it and try
to run it locally, no prime numbers are displayed. If I setup a local
webserver and view the page through my localhost, a web worker process
is started and the prime numbers are displayed. This issue has
persisted over a variety of examples of web workers. It seems that
Chrome simply won't load a web worker without being loaded from a HTTP
server.

I am running Chrome on OS X. I have tried the latest Chromium as well,
but to no success.

Has anyone come across this issue?

best,

Nik

PhistucK

unread,
Jun 8, 2010, 4:37:40 AM6/8/10
to nik...@gmail.com, Chromium-discuss
Yes, there are still talks (as far as I remember) about this use case.
For now, you can start Chrome with the --allow-file-access-from-files console\terminal\command line switch, which will solve it.

☆PhistucK



--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

Reply all
Reply to author
Forward
0 new messages