开发者

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

开发者 https://www.devze.com 2023-01-16 12:45 出处:网络
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

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

精彩评论

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