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

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

Document Tags and Contributors

 Contributors to this page: Sheppy, kscarfone
 Last updated by: Sheppy,