Web workers and Firefox 8
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.
Head First HTML5 Programming
Head First HTML and CSS
Head First Design Patterns
leave a comment