Elisabeth Robson

Web workers and Firefox 8

Posted in Blog, Technology by Elisabeth on December 7, 2011

For those of you who have purchased Head First HTML5 Programming, be aware that there is a bug in Firefox 8. In this version of the browser, you cannot create a web worker from localhost, which means that the code:

var worker = new Worker("worker.js");

will fail. If you open the JavaScript console, you’ll see an error saying “Could not get domain.” This error will prevent the examples in Chapter 10 from working, since we are creating workers from localhost. So, please use a different browser! Hopefully this bug will be fixed in Firefox 9.

Mozilla is pushing out releases of Firefox at a blazing speed, so I don’t think it will take too long for this to be fixed.

Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *


+ four = 13

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>