Bug 769737 Add nsIFocusManager to Services.jsm r=gavin.

This commit is contained in:
Philip Chee 2012-07-02 05:09:31 +08:00
parent 722f092a13
commit 3296fb9b89
2 changed files with 11 additions and 1 deletions

View File

@ -61,7 +61,8 @@ let initTable = [
["startup", "@mozilla.org/toolkit/app-startup;1", "nsIAppStartup"],
["sysinfo", "@mozilla.org/system-info;1", "nsIPropertyBag2"],
["clipboard", "@mozilla.org/widget/clipboard;1", "nsIClipboard"],
["DOMRequest", "@mozilla.org/dom/dom-request-service;1", "nsIDOMRequestService"]
["DOMRequest", "@mozilla.org/dom/dom-request-service;1", "nsIDOMRequestService"],
["focus", "@mozilla.org/focus-manager;1", "nsIFocusManager"],
];
initTable.forEach(function ([name, contract, intf])

View File

@ -44,4 +44,13 @@ function checkServices() {
checkService("telemetry", Ci.nsITelemetry);
checkService("sysinfo", Ci.nsIPropertyBag2);
checkService("clipboard", Ci.nsIClipboard);
checkService("console", Ci.nsIConsoleService);
checkService("startup", Ci.nsIAppStartup);
checkService("appShell", Ci.nsIAppShellService);
checkService("cache", Ci.nsICacheService);
checkService("scriptSecurityManager", Ci.nsIScriptSecurityManager);
checkService("domStorageManager", Ci.nsIDOMStorageManager);
checkService("DOMRequest", Ci.nsIDOMRequestService);
checkService("downloads", Ci.nsIDownloadManager);
checkService("focus", Ci.nsIFocusManager);
}