我正在使用名为 arbor.js 的库( beautified )。它包含以下代码行,
i = new Worker(<path to arbor.js>);
此时抛出错误,Firebug中报如下信息,
"Could not get domain!"
给出此错误的行是 258。该行上的 arbor_path()
函数返回 "js/"
,因此有效调用的函数是 i = new Worker("js/arbor.js")
.
这曾经在 Firefox 7 中完美运行。有人知道如何解决它,或者可能是什么问题吗?
最佳答案
你遇到了 https://bugzilla.mozilla.org/show_bug.cgi?id=683280
它会在大约一个月内在 Firefox 9 中修复....
关于javascript - 网络 worker 不在 firefox 8 中工作,在 firefox 7 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8213268/