{"action":"created","issue":{"url":"https://api.github.com/repos/digitalbazaar/forge/issues/225","labels_url":"https://api.github.com/repos/digitalbazaar/forge/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/digitalbazaar/forge/issues/225/comments","events_url":"https://api.github.com/repos/digitalbazaar/forge/issues/225/events","html_url":"https://github.com/digitalbazaar/forge/issues/225","id":59861899,"number":225,"title":"estimateCores does not work on firefox","user":{"login":"browning","id":34327,"avatar_url":"https://avatars.githubusercontent.com/u/34327?v=3","gravatar_id":"","url":"https://api.github.com/users/browning","html_url":"https://github.com/browning","followers_url":"https://api.github.com/users/browning/followers","following_url":"https://api.github.com/users/browning/following{/other_user}","gists_url":"https://api.github.com/users/browning/gists{/gist_id}","starred_url":"https://api.github.com/users/browning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browning/subscriptions","organizations_url":"https://api.github.com/users/browning/orgs","repos_url":"https://api.github.com/users/browning/repos","events_url":"https://api.github.com/users/browning/events{/privacy}","received_events_url":"https://api.github.com/users/browning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T21:08:06Z","updated_at":"2015-03-05T02:32:10Z","closed_at":null,"body":"On chrome 40 I get this:\r\n\r\n    window.forge.util.estimateCores(function(err, cores) { console.log(cores); });\r\n    8\r\n\r\nOn Firefox 36:\r\n\r\n    window.forge.util.estimateCores(function(err, cores) { console.log(cores); });\r\n    Error: Failed to load script (nsresult = 0x805e0006)\r\n      map()util.js (line 2856)\r\n      sample()util.js (line 2846)\r\n      initModule/util.estimateCores()util.js (line 2834)\r\n      var worker = new Worker(blobUrl);"},"comment":{"url":"https://api.github.com/repos/digitalbazaar/forge/issues/comments/77295134","html_url":"https://github.com/digitalbazaar/forge/issues/225#issuecomment-77295134","issue_url":"https://api.github.com/repos/digitalbazaar/forge/issues/225","id":77295134,"user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T02:32:10Z","updated_at":"2015-03-05T02:32:10Z","body":"It's working fine for me with Firefox 36 with this simple test setup:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <script src=\"/js/util.js\"></script>\r\n</head>\r\n<body>\r\n\r\n<script>\r\nwindow.forge.util.estimateCores(function(err, cores) {\r\n  console.log('cores', cores);\r\n});\r\n</script>\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\nDo you have a special `Content-Security-Policy` header set? I saw this bug while looking around to see what might be the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=964276"}}