Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIWorkerFactory

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

Creates and returns a new Worker
1.0
28
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

ドキュメントのタグと貢献者

 このページの貢献者: Sheppy, kscarfone
 最終更新者: Sheppy,