开发者

Why does a ChromeWorker throw "Components is not defined"?

The documentation on ChromeWo开发者_Python百科rkers says that they have "chrome privileges", and chrome privileges are supposed to mean they can do anything, but when I create a ChromeWorker and try to use Components I get an error that 'Components' is not defined..

So my question is

  1. why is Components not available?
  2. what is available to a ChromeWorker?


You cannot access the Components object because the Components object isn't threadsafe. A ChromeWorker gives you access to everything a Worker has access to, and c-types.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜