Confirmed users, Bureaucrats and Sysops emeriti
1,217
edits
(No more well-known directories: plugins are found via API) |
|||
Line 50: | Line 50: | ||
== How Gecko Loads a GMP == | == How Gecko Loads a GMP == | ||
Gecko | Firefox addons and the Firefox addon manager tells Gecko where to look for plugins, using the mozIGeckoMediaPluginService.addPluginDirectory and .removePluginDirectory API. | ||
Developers prototyping new addons may also use the environment variable MOZ_GMP_PATH to specify a list of directories. | |||
It maintains a list of known GMPs, and when an API is requested by a consumer it scans the list for a GMP that can provide the API. | It maintains a list of known GMPs, and when an API is requested by a consumer it scans the list for a GMP that can provide the API. |