nsIWorkerFactory 编辑
dom/interfaces/threads/nsIDOMWorkers.idl
Scriptable Creates and returns a new Worker
1.0 66 Introduced Gecko 2.0 Obsolete Gecko 8.0 Inherits from: nsISupports
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This interface was removed in Gecko 8.0. You don't need to use it anymore to create workers from chrome. Instead, you can just do new Worker
or new ChromeWorker
.
Implemented by: threads/workerfactory;1
. To create an instance, use:
var workerFactory = Components.classes['@mozilla.org/threads/workerfactory;1'] .createInstance(Components.interfaces.nsIWorkerFactory);
Method overview
nsIWorker newChromeWorker(in DOMString aScriptURL); |
Methods
newChromeWorker()
Returns a new ChromeWorker
that will run a specified script.
nsIWorker newChromeWorker( in DOMString aScriptURL );
Parameters
aScriptURL
- The URL of the script to load into the new worker.
Return value
An nsIWorker
object representing the new ChromeWorker
.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论